Skip to content

Commit

Permalink
Catch case of none-existant profile from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Sep 14, 2024
1 parent 00fa34a commit 547b39f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vorta/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def react_to_log(self, mgs, context):
"""
msgid = context.get('msgid')
if msgid == 'LockTimeout':
profile = BackupProfileModel.get(name=context['profile_name'])
profile = BackupProfileModel.get_or_none(name=context['profile_name'])
if profile is None: # Repo may not yet exist in DB.
return
repo_url = context.get('repo_url')
msg = QMessageBox()
msg.setWindowTitle(self.tr("Repository In Use"))
Expand Down

0 comments on commit 547b39f

Please sign in to comment.