8000 Fix #70 · Lukasa/github3.py@676be73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 676be73

Browse files
committed
Release 0.5.1
1 parent 32b0426 commit 676be73

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

github3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
__author__ = 'Ian Cordasco'
1414
__license__ = 'Modified BSD'
1515
__copyright__ = 'Copyright 2012-2013 Ian Cordasco'
16-
__version__ = '0.5'
16+
__version__ = '0.5.1'
1717

1818
from github3.api import *
1919
from github3.github import GitHub, GitHubEnterprise, GitHubStatus

github3/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ def __init__(self, acct, session):
318318

319319
## e.g. first_name last_name
320320
#: Real name of the user/org
321-
self.name = acct.get('name', '').encode('utf-8')
321+
self.name = acct.get('name') or ''
322+
self.name.encode('utf-8')
322323

323324
## The number of public_repos
324325
#: Number of public repos owned by the user/org

0 commit comments

Comments
 (0)
0