authorization api now final
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-11-26 01:56:41 +01:00
parent 34bb3fcc25
commit 025e380e6f
4 changed files with 67 additions and 26 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env python3
import musicbrainzngs
"""
Flask error handler functions
"""
@@ -12,6 +14,7 @@ __version__text__ = "1"
def get_standard_error_handler(code: int):
def error_handler(err):
musicbrainzngs.user(None, None)
return {"msg": str(err)}, code
return error_handler