[elbe-devel] [PATCH v3 22/75] authentiaction: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Sun Nov 6 22:12:01 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/daemons/soap/authentication.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/elbepack/daemons/soap/authentication.py b/elbepack/daemons/soap/authentication.py
index e3e285115..febca6ae2 100644
--- a/elbepack/daemons/soap/authentication.py
+++ b/elbepack/daemons/soap/authentication.py
@@ -97,8 +97,7 @@ def authenticated_uid(func):
return func(self, uid, arg1, arg2, arg3, arg4, arg5)
return wrapped
- raise Exception("arg count %d not implemented" %
- func.__code__.co_argcount)
+ raise Exception(f"arg count {func.__code__.co_argcount} not implemented")
def authenticated_admin(func):
@@ -175,5 +174,4 @@ def authenticated_admin(func):
return func(self, arg1, arg2, arg3, arg4, arg5)
return wrapped
- raise Exception("arg count %d not implemented" %
- func.__code__.co_argcount)
+ raise Exception(f"arg count {func.__code__.co_argcount} not implemented")
--
2.38.1
More information about the elbe-devel
mailing list