Skip to content

Commit

Permalink
remove redundant exception class, clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
helylle committed Aug 30, 2024
1 parent 0e79627 commit 0b891fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eduid/workers/job_runner/jobs/skv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from eduid.common.misc.timeutil import utc_now
from eduid.common.models.amapi_user import Reason, Source, UserUpdateResponse, UserUpdateTerminateRequest
from eduid.common.rpc.exceptions import MsgTaskFailed, NoNavetData
from eduid.common.rpc.exceptions import MsgTaskFailed
from eduid.common.rpc.msg_relay import DeregisteredCauseCode, NavetData
from eduid.userdb.exceptions import UserDoesNotExist
from eduid.userdb.meta import CleanerType
Expand Down Expand Up @@ -53,7 +52,7 @@ def check_skv_users(context: Context):
terminate_user(context, user)
else:
context.logger.debug(f"User with eppn {user.eppn} is still registered")
except (MsgTaskFailed, NoNavetData):
except MsgTaskFailed:
context.logger.error(f"Failed to get Navet data for user with eppn {user.eppn}")
# The user will be requeued for a new check by the next run of gather_skv_users
else:
Expand Down

0 comments on commit 0b891fe

Please sign in to comment.