mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-25 23:41:33 +00:00
Fix incorrect type on comparison of exception
This commit is contained in:
@@ -57,7 +57,7 @@ class BackupExtractor:
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
except sqlite3.DatabaseError as e:
|
except sqlite3.DatabaseError as e:
|
||||||
if e == "authorization denied" and osname == "darwin":
|
if str(e) == "authorization denied" and osname == "darwin":
|
||||||
logger.error(
|
logger.error(
|
||||||
"You don't have permission to access the backup database. Please"
|
"You don't have permission to access the backup database. Please"
|
||||||
"check your permissions or try moving the backup to somewhere else."
|
"check your permissions or try moving the backup to somewhere else."
|
||||||
|
|||||||
Reference in New Issue
Block a user