mirror of https://github.com/Hoffelhas/autodoist
Final preparations for v2.0
parent
8fe99f4942
commit
956f5176af
|
@ -444,8 +444,11 @@ def initialise_sync_api(api):
|
||||||
}
|
}
|
||||||
data = 'sync_token=*&resource_types=["all"]'
|
data = 'sync_token=*&resource_types=["all"]'
|
||||||
|
|
||||||
|
try:
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
'https://api.todoist.com/sync/v9/sync', headers=headers, data=data)
|
'https://api.todoist.com/sync/v9/sync', headers=headers, data=data)
|
||||||
|
except Exception as e:
|
||||||
|
logging.error(f"Error during initialise_sync_api: '{e}'")
|
||||||
|
|
||||||
return json.loads(response.text)
|
return json.loads(response.text)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue