Commit 0707d807 authored by echel0n's avatar echel0n
Browse files

Pre-Release v9.4.178.dev6

parent 062ac695
# Changelog
- * 062ac6958 - 2019-10-06: Pre-Release v9.4.178.dev5
- * 8dd6f5034 - 2019-10-06: Pre-Release v9.4.178.dev4
- * f2a171d55 - 2019-10-06: Removed old manual token refresh code for API.
- * 4cf7fbbcf - 2019-10-06: Pre-Release v9.4.178.dev3
......
......@@ -45,7 +45,7 @@ class API(object):
with open(self.token_file, 'r') as fd:
try:
token = json.load(fd)
if not token.get('expires_at'):
if len(token) and not token.get('expires_at'):
token['expires_at'] = time.time() - 10
except JSONDecodeError:
token = {}
......
9.4.178.dev5
\ No newline at end of file
9.4.178.dev6
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment