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:
parent
26b171fb34
commit
1d7f6363d9
|
@ -43,7 +43,7 @@ class BorgQtThread(QThread):
|
||||||
if json_err:
|
if json_err:
|
||||||
error = json_err.splitlines()[0]
|
error = json_err.splitlines()[0]
|
||||||
if 'stale' in error:
|
if 'stale' in error:
|
||||||
pass
|
return
|
||||||
else:
|
else:
|
||||||
err = json.loads(error)
|
err = json.loads(error)
|
||||||
raise BorgException(err['message'])
|
raise BorgException(err['message'])
|
||||||
|
|
Loading…
Reference in New Issue