summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/pr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/b4/pr.py b/b4/pr.py
index 8da4d9b..0dc2bab 100644
--- a/b4/pr.py
+++ b/b4/pr.py
@@ -466,7 +466,9 @@ def get_pr_from_github(ghurl: str):
resp = req.get(apiurl)
if resp.status_code == 200:
udata = resp.json()
- uname = udata.get('name', ulogin)
+ uname = udata.get('name')
+ if not uname:
+ uname = ulogin
uemail = udata.get('email')
if not uemail:
uemail = fake_email