Commits

Cmed Technology committed c8bfc64 Draft

tidy words

  • Participants
  • Parent commits f755570

Comments (0)

Files changed (1)

File restapiblueprint/lib/__init__.py

 
 
 def use_pretty_default_error_handlers(app):
-    """Set default error handlers to use lib.make_error."""
+    """Set default error handlers to use lib.make_error.
+
+    With thanks to http://flask.pocoo.org/snippets/15/
+
+    """
     def make_json_error(ex):
         status_code = ex.code if isinstance(ex, HTTPException) else 500
         return make_error('', status_code)