Skip to content

Commit ec1dfcd

Browse files
real-yfprojectsherrwusel
andauthored
Add profile name to error notification. (borgbase#1728)
In a similar fashion like borgbase#1637 the commit adds the profile name to the error notification. * src/vorta/scheduler.py Co-authored-by: herrwusel <herrwusel@noreply.github.com>
1 parent d087654 commit ec1dfcd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/vorta/scheduler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class ScheduleStatus(NamedTuple):
3434

3535

3636
class VortaScheduler(QtCore.QObject):
37-
3837
#: The schedule for the profile with the given id changed.
3938
schedule_changed = QtCore.pyqtSignal(int)
4039

@@ -198,7 +197,6 @@ def set_timer_for_profile(self, profile_id: int):
198197
return
199198

200199
with self.lock: # Acquire lock
201-
202200
self.remove_job(profile_id) # reset schedule
203201

204202
pause = self.pauses.get(profile_id)
@@ -292,7 +290,6 @@ def set_timer_for_profile(self, profile_id: int):
292290

293291
# handle missing of a scheduled time
294292
if next_time <= dt.now():
295-
296293
if profile.schedule_make_up_missed:
297294
self.lock.release()
298295
try:
@@ -446,7 +443,7 @@ def notify(self, result):
446443
else:
447444
notifier.deliver(
448445
self.tr('Vorta Backup'),
449-
self.tr('Error during backup creation.'),
446+
self.tr('Error during backup creation for %s.') % profile_name,
450447
level='error',
451448
)
452449
logger.error('Error during backup creation.')

0 commit comments

Comments
 (0)