You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when the user has not set his name, user.name is None, so you can't concatenate it with a string. The exception is not raised by PyGithub but by your code. Try print user.login, "->", user.name to avoid string concatenation.
Hi @jacquev6 When a github user's name has not been entered, I get a TypeError:
TypeError: coercing to Unicode: need string or buffer, NoneType found
Using:
Also happens with
getattr
:Is this the expected behaviour for missing (non-mandatory) attributes? I used
except TypeError:
as a workaround.The text was updated successfully, but these errors were encountered: