Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Handle an error from flask decorator
- in python 3 you can just do: def error_handler_decorator (func): @functools.wraps (func) def wrapper (*args, error_message_for_wrapper = None, cont = True, **kwargs): try: return func (*args, **kwargs) except:
- https://cuty.io/nGDNcjAQ65o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement