aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-19 17:39:36 +0300
committerMunyoki Kilyungi2024-03-21 10:04:31 +0300
commitf7c41fa2f24d96c3024930b1bb603f566f402644 (patch)
treec0427ac5d5d2c5273c43d6dda7f6c56164a45857 /gn_auth
parent43a2155af1a017a85e924406492b67cb98613eb7 (diff)
downloadgn-auth-f7c41fa2f24d96c3024930b1bb603f566f402644.tar.gz
Rename klass to class_.
As recommended by: <https://barry.warsaw.us/software/STYLEGUIDE.txt> which is a reference for pep-8. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/errors.py b/gn_auth/errors.py
index fdd2f3e..7e90659 100644
--- a/gn_auth/errors.py
+++ b/gn_auth/errors.py
@@ -39,5 +39,5 @@ __error_handlers__ = {
}
def register_error_handlers(app: Flask):
"""Register ALL defined error handlers"""
- for klass, error_handler in __error_handlers__.items():
- app.register_error_handler(klass, error_handler)
+ for class_, error_handler in __error_handlers__.items():
+ app.register_error_handler(class_, error_handler)