diff --git a/src/vorta/application.py b/src/vorta/application.py index 8857a51e..17ec6752 100644 --- a/src/vorta/application.py +++ b/src/vorta/application.py @@ -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"))