aboutsummaryrefslogtreecommitdiffstats
path: root/backend/zmusic/endpoints/error.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-01-06 14:43:18 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-07 20:40:24 +0100
commita12f613086eb60147a2f19a4b58976664505f36b (patch)
tree1533d440f2327d6feea05dfebd51b5ef23adab84 /backend/zmusic/endpoints/error.py
parentSimplify deployment (diff)
downloadzmusic-ng-master.tar.xz
zmusic-ng-master.zip
Update to python3HEADmaster
Diffstat (limited to 'backend/zmusic/endpoints/error.py')
-rw-r--r--backend/zmusic/endpoints/error.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/zmusic/endpoints/error.py b/backend/zmusic/endpoints/error.py
index c356c3d..de43caf 100644
--- a/backend/zmusic/endpoints/error.py
+++ b/backend/zmusic/endpoints/error.py
@@ -9,5 +9,5 @@ def json_error(ex):
response.status_code = status_code
return response
-for code in default_exceptions.iterkeys():
+for code in default_exceptions.keys():
app.register_error_handler(code, json_error)