update error di form_validator

1 parent 2d392b61
...@@ -346,8 +346,11 @@ class BaseView(object): ...@@ -346,8 +346,11 @@ class BaseView(object):
except Exception as e: except Exception as e:
msg = f"Error cleaning HTML for key {k}: {e}" msg = f"Error cleaning HTML for key {k}: {e}"
log.error(msg) log.error(msg)
exc[k] = msg try:
value[k] = v exc[k] = msg
value[k] = v
except:
pass
# raise exc from e # raise exc from e
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!