mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
Compare commits
1 Commits
2025.6.6.3
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ab8a357137 |
@@ -8,4 +8,4 @@
|
||||
|
||||
"""Metadata for this python module."""
|
||||
|
||||
__version__ = "2025.6.6.3"
|
||||
__version__ = "2025.6.6.4"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
"""invenio module for I-Form theme."""
|
||||
|
||||
import traceback
|
||||
from functools import wraps
|
||||
from typing import Dict
|
||||
|
||||
@@ -121,6 +122,10 @@ def default_error_handler(e: Exception):
|
||||
# - `e`, the passed-in exception
|
||||
# to get proxied-to objects: `flask.request._get_current_object()`
|
||||
|
||||
msg = f"default_error_handler of invenio-theme-iform captured following error type: {
|
||||
type(e)
|
||||
} with message {e} and stack trace {traceback.format_exc()}"
|
||||
current_app.logger.error(msg)
|
||||
return render_template(current_app.config["THEME_500_TEMPLATE"]), 500
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user