Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add profile name to error notification. #1728

Merged
merged 3 commits into from
Jun 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/vorta/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -198,7 +197,6 @@ def set_timer_for_profile(self, profile_id: int):
return

with self.lock: # Acquire lock

self.remove_job(profile_id) # reset schedule

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

# handle missing of a scheduled time
if next_time <= dt.now():

if profile.schedule_make_up_missed:
self.lock.release()
try:
Expand Down Expand Up @@ -446,7 +443,7 @@ def notify(self, result):
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.')
Expand Down