mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 21:43:01 +00:00
apply ruff fixes for UP031
This commit is contained in:
@@ -1113,7 +1113,7 @@ class APIToken(Hashed, Base):
|
||||
elif kind == 'service':
|
||||
prefix_match = prefix_match.filter(cls.service_id != None)
|
||||
elif kind is not None:
|
||||
raise ValueError("kind must be 'user', 'service', or None, not %r" % kind)
|
||||
raise ValueError(f"kind must be 'user', 'service', or None, not {kind!r}")
|
||||
for orm_token in prefix_match:
|
||||
if orm_token.match(token):
|
||||
if not orm_token.client_id:
|
||||
|
Reference in New Issue
Block a user