We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738035e commit 6f74516Copy full SHA for 6f74516
things3/things3.py
@@ -135,7 +135,7 @@ def __init__(self,
135
with open(self.database) as f_d:
136
if "Your database file has been moved there" in f_d.readline():
137
self.database = f"/Users/{self.user}/{self.FILE_DB}"
138
- except (UnicodeDecodeError, FileNotFoundError):
+ except (UnicodeDecodeError, FileNotFoundError, PermissionError):
139
pass # binary file (old database) or doesn't exist
140
# --------------------------------
141
self.set_config('THINGSDB', self.database)
0 commit comments