okfde / 2013.archiv.codefor.de

The old website for Code for Germany, 2013 edition. Includes the blog, projects list and basic info about the group.
https://2013.archiv.codefor.de
Other
153 stars 141 forks source link

add NoneType check on missing username #756

Closed marcel12bell closed 7 years ago

marcel12bell commented 7 years ago

prevents update_avatars.py to throw error: Traceback (most recent call last): File "update_avatars.py", line 92, in main() File "update_avatars.py", line 77, in main avatar = get_avatar(username, last_modified) File "update_avatars.py", line 29, in get_avatar response = requests.get('https://api.github.com/users/' + username, headers={'If-Modified-Since': last_modified}) TypeError: cannot concatenate 'str' and 'NoneType' objects