Skip to content

Commit 6f74516

Browse files
fixing an issue with non-existing databases
1 parent 738035e commit 6f74516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

things3/things3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self,
135135
with open(self.database) as f_d:
136136
if "Your database file has been moved there" in f_d.readline():
137137
self.database = f"/Users/{self.user}/{self.FILE_DB}"
138-
except (UnicodeDecodeError, FileNotFoundError):
138+
except (UnicodeDecodeError, FileNotFoundError, PermissionError):
139139
pass # binary file (old database) or doesn't exist
140140
# --------------------------------
141141
self.set_config('THINGSDB', self.database)

0 commit comments

Comments
 (0)