mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-07 16:13:55 +02:00
fix bug
This commit is contained in:
@@ -520,7 +520,7 @@ class Anonymous_Github:
|
|||||||
os.mkdir(config_path)
|
os.mkdir(config_path)
|
||||||
with open(config_path + "/config.json", 'w') as outfile:
|
with open(config_path + "/config.json", 'w') as outfile:
|
||||||
token = None
|
token = None
|
||||||
if user is not None:
|
if user is not None and 'token' in user:
|
||||||
token = user['token']['access_token']
|
token = user['token']['access_token']
|
||||||
json.dump({
|
json.dump({
|
||||||
"id": id,
|
"id": id,
|
||||||
|
|||||||
Reference in New Issue
Block a user