diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/roomservice.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/roomservice.py b/tools/roomservice.py index c1979ef..bc3a809 100755 --- a/tools/roomservice.py +++ b/tools/roomservice.py @@ -38,11 +38,14 @@ if not depsonly: repositories = [] -authtuple = netrc.netrc().authenticators("api.github.com") +try: + authtuple = netrc.netrc().authenticators("api.github.com") -if authtuple: - githubauth = base64.encodestring('%s:%s' % (authtuple[0], authtuple[2])).replace('\n', '') -else: + if authtuple: + githubauth = base64.encodestring('%s:%s' % (authtuple[0], authtuple[2])).replace('\n', '') + else: + githubauth = None +except: githubauth = None page = 1 |