Add profile name to error notification. (#1728)

In a similar fashion like #1637 the commit adds the profile name to the error notification.

* src/vorta/scheduler.py

Co-authored-by: herrwusel <herrwusel@noreply.github.com>
This commit is contained in:
yfprojects 2023-06-28 19:25:08 +00:00 committed by GitHub
parent d087654eb3
commit ec1dfcd803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -34,7 +34,6 @@ class ScheduleStatus(NamedTuple):
class VortaScheduler(QtCore.QObject):
#: The schedule for the profile with the given id changed.
schedule_changed = QtCore.pyqtSignal(int)
@ -198,7 +197,6 @@ class VortaScheduler(QtCore.QObject):
return
with self.lock: # Acquire lock
self.remove_job(profile_id) # reset schedule
pause = self.pauses.get(profile_id)
@ -292,7 +290,6 @@ class VortaScheduler(QtCore.QObject):
# handle missing of a scheduled time
if next_time <= dt.now():
if profile.schedule_make_up_missed:
self.lock.release()
try:
@ -446,7 +443,7 @@ class VortaScheduler(QtCore.QObject):
else:
notifier.deliver(
self.tr('Vorta Backup'),
self.tr('Error during backup creation.'),
self.tr('Error during backup creation for %s.') % profile_name,
level='error',
)
logger.error('Error during backup creation.')