change pass to return in the error processing method

Passing lets the function to continue however we want to stop it early
therefore we return.
This commit is contained in:
Andreas Zweili 2019-02-16 10:16:07 +01:00
parent 26b171fb34
commit 1d7f6363d9
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class BorgQtThread(QThread):
if json_err:
error = json_err.splitlines()[0]
if 'stale' in error:
pass
return
else:
err = json.loads(error)
raise BorgException(err['message'])