Add fixes back for oauth2client

This commit is contained in:
Jay Lee
2015-09-30 09:57:49 -04:00
parent 58335025c4
commit 27b31ff1fb
3 changed files with 15 additions and 8 deletions

View File

@ -593,7 +593,7 @@ def buildGAPIObject(api):
pyinstaller_disc_file = None
try:
pyinstaller_disc_file = os.path.join(sys._MEIPASS, disc_filename)
except NameError:
except (NameError, AttributeError):
pass
if os.path.isfile(disc_file):
f = file(disc_file, 'rb')
@ -687,7 +687,7 @@ def buildGAPIServiceObject(api, act_as=None, soft_errors=False):
pyinstaller_disc_file = None
try:
pyinstaller_disc_file = os.path.join(sys._MEIPASS, disc_filename)
except NameError:
except (NameError, AttributeError):
pass
if os.path.isfile(disc_file):
f = file(disc_file, 'rb')