Added more robust error handling for google auth token flow
changed minor bugfix from try/except to if/else