Returns HTTPError with '500 internal error' error from the active application.
(message=None)
| 370 | |
| 371 | |
| 372 | def InternalError(message=None): |
| 373 | """Returns HTTPError with '500 internal error' error from the active application.""" |
| 374 | if message: |
| 375 | return _InternalError(message) |
| 376 | elif ctx.get("app_stack"): |
| 377 | return ctx.app_stack[-1].internalerror() |
| 378 | else: |
| 379 | return _InternalError() |
| 380 | |
| 381 | |
| 382 | internalerror = InternalError |
nothing calls this directly
no test coverage detected