Skip to content

Commit 378ea6c

Browse files
committed
fix for remote repos
1 parent 88cb2dc commit 378ea6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vorta/views/repo_add_dialog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ def run_result(self, result):
277277
else:
278278
self._set_status(self.tr('Unable to add your repository.'))
279279
for error in result['errors']:
280-
if 'msgid' in error and error['msgid'] in ['Repository.DoesNotExist', 'Repository.InvalidRepository']:
280+
if (
281+
'msgid' in error and error['msgid'] in ['Repository.DoesNotExist', 'Repository.InvalidRepository']
282+
) or self.is_remote_repo:
281283
self.init_new_repo()
282284
break
283285

0 commit comments

Comments
 (0)