Skip to content

Commit

Permalink
fix for remote repos
Browse files Browse the repository at this point in the history
  • Loading branch information
SAMAD101 committed Feb 25, 2024
1 parent 88cb2dc commit 378ea6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vorta/views/repo_add_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ def run_result(self, result):
else:
self._set_status(self.tr('Unable to add your repository.'))
for error in result['errors']:
if 'msgid' in error and error['msgid'] in ['Repository.DoesNotExist', 'Repository.InvalidRepository']:
if (
'msgid' in error and error['msgid'] in ['Repository.DoesNotExist', 'Repository.InvalidRepository']
) or self.is_remote_repo:
self.init_new_repo()
break

Expand Down

0 comments on commit 378ea6c

Please sign in to comment.