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:
Tomas Kopecek 2024-06-19 15:27:32 +02:00
commit d68a9273e1

View file

@ -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