Private
Public Access
1
0

small fixes

This commit is contained in:
Sander Roosendaal
2021-09-02 18:09:09 +02:00
parent 67aa46b705
commit b736baf3e2
2 changed files with 9 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ def get_token(code): # pragma: no cover
thetoken = token_json['access_token']
expires_in = token_json['expires_in']
user_id = token_json['x_user_id']
except KeyError:
except (KeyError,JSONDecodeError):
thetoken = 0
expires_in = 0
user_id = 0