PR#4117: RetryError is subclass of AuthError
Merges #4117 https://pagure.io/koji/pull-request/4117 Fixes: #4055 https://pagure.io/koji/issue/4055 Unreachable code in (at least) kojid
This commit is contained in:
commit
d68a9273e1
1 changed files with 2 additions and 2 deletions
|
|
@ -266,11 +266,11 @@ def main(options, session):
|
|||
except ServerRestart:
|
||||
logger.warning("Restarting")
|
||||
os.execv(sys.argv[0], sys.argv)
|
||||
except koji.RetryError:
|
||||
raise
|
||||
except koji.AuthExpired:
|
||||
logger.error('Session expired')
|
||||
break
|
||||
except koji.RetryError:
|
||||
raise
|
||||
except Exception:
|
||||
# XXX - this is a little extreme
|
||||
# log the exception and continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue