From 804946f685f94b375c03b3620033e431094136ad Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 2 Jan 2019 02:53:46 +0100 Subject: Work with recent flask --- README.md | 2 +- backend/zmusic/endpoints/error.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6917579..c165e5e 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ The author does not condone or promote using this software for redistributing co ## License -Copyright (C) 2013 Jason A. Donenfeld. All Rights Reserved. +Copyright (C) 2013-2019 Jason A. Donenfeld. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/backend/zmusic/endpoints/error.py b/backend/zmusic/endpoints/error.py index 74e7cd2..c356c3d 100644 --- a/backend/zmusic/endpoints/error.py +++ b/backend/zmusic/endpoints/error.py @@ -10,4 +10,4 @@ def json_error(ex): return response for code in default_exceptions.iterkeys(): - app.error_handler_spec[None][code] = json_error + app.register_error_handler(code, json_error) -- cgit v1.2.3-59-g8ed1b