Fix notification bug

Correctly handle exception when trying to display notification if
dbus-python is not available
This commit is contained in:
2023-06-02 17:01:37 +02:00
parent 525f381094
commit 5ddd374350
4 changed files with 18 additions and 16 deletions

View File

@ -250,7 +250,10 @@ class Backup:
except NameError:
pass
else:
notify('Backup finished')
try:
notify('Backup finished')
except NameError:
pass
def _parse_arguments():