You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
diff --git a/setup.py b/setup.py
index b6ec2aa..477d704 100644
--- a/setup.py+++ b/setup.py@@ -13,7 +13,7 @@ def read(fname):
setup(
name="todoist-python",
- version="8.1.3",+ version="8.1.4",
packages=["todoist", "todoist.managers"],
author="Doist Team",
author_email="[email protected]",
diff --git a/todoist/api.py b/todoist/api.py
index 089f6dd..bdf42d1 100644
--- a/todoist/api.py+++ b/todoist/api.py@@ -347,6 +347,10 @@ class TodoistAPI(object):
Sends to the server the changes that were made locally, and also
fetches the latest updated data from the server.
"""
++ if not len(self.sync_token) or self.sync_token == '*':+ print("Warning: token does not appear to be set; is {!r}".format(self.sync_token))+
post_data = {
"token": self.token,
"sync_token": self.sync_token,
Expected behavior
python -c "from todoist import TodoistAPI; api = TodoistAPI(); api.sync()"
outputs a warning indicating no token has been set.
Actual behavior
Fails silently;
api.state
is empty.The text was updated successfully, but these errors were encountered: