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
I had the same issue. It only seems to be happening when cache.cfg is missing, i.e. to any new user.
I fixed it by simply disabling binary writing. Hopefully that does not break anything else, in particular any unicode encoded tasks or similar... I failed to make configparser work with unicode section, key, values.
It works fine for me so far.
Here is a patch:
diff --git a/habitica/core.py b/habitica/core.py
index 980dfad..9c2c18d 100755
--- a/habitica/core.py
+++ b/habitica/core.py
@@ -111,7 +111,7 @@ def update_quest_cache(configfile, **kwargs):
for key, val in kwargs.items():
cache.set(SECTION_CACHE_QUEST, key, val)
- with open(configfile, 'wb') as f:
+ with open(configfile, 'w') as f:
cache.write(f)
cache.read(configfile)
The text was updated successfully, but these errors were encountered: