Fix incorrect type on comparison of exception

This commit is contained in:
KnugiHK
2025-06-19 21:09:00 +08:00
parent 4742ffd858
commit 716d4af3f3

View File

@@ -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."