diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-01-02 02:53:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-01-02 02:53:46 +0100 |
commit | 804946f685f94b375c03b3620033e431094136ad (patch) | |
tree | 0667fc3676b3753e92570a27f7d024894934167f /backend | |
parent | Use ffmpeg and support m4a (diff) | |
download | zmusic-ng-804946f685f94b375c03b3620033e431094136ad.tar.xz zmusic-ng-804946f685f94b375c03b3620033e431094136ad.zip |
Work with recent flask
Diffstat (limited to 'backend')
-rw-r--r-- | backend/zmusic/endpoints/error.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |