You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a few recent error emails from the submission system with An unexpected error occurred: float() argument must be a string or a number, not 'NoneType' and an exception raised in Sentry (example) with Final attempt of process_saved_file for recid 1636571704 failed. Resetting to previous status. This happens because null values are given for some fields, e.g.
Here, the value and symerror will show as None in Python, giving an uncaught exception TypeError: float() argument must be a string or a number, not 'NoneType' from error = float(error). Probably it would be easier just to make the additional Python checks such as check_for_zero_uncertainty if there are no validation errors from the JSON schema (i.e. revert a change made in dd5d463). Otherwise, the Python code making the additional checks cannot make any assumptions about the validity of the fields.
Could you please address this issue, @alisonrclarke, together with #39?
The text was updated successfully, but these errors were encountered:
Instead of only doing the additional check is there are no schema errors, would it be OK to do them but wrap in try/except, ignoring any exceptions if there are already errors?
I just think it's helpful to the end user to show as many errors as possible first time.
I've noticed a few recent error emails from the submission system with
An unexpected error occurred: float() argument must be a string or a number, not 'NoneType'
and an exception raised in Sentry (example) withFinal attempt of process_saved_file for recid 1636571704 failed. Resetting to previous status.
This happens because null values are given for some fields, e.g.Here, the
value
andsymerror
will show asNone
in Python, giving an uncaught exceptionTypeError: float() argument must be a string or a number, not 'NoneType'
fromerror = float(error)
. Probably it would be easier just to make the additional Python checks such ascheck_for_zero_uncertainty
if there are no validation errors from the JSON schema (i.e. revert a change made in dd5d463). Otherwise, the Python code making the additional checks cannot make any assumptions about the validity of the fields.Could you please address this issue, @alisonrclarke, together with #39?
The text was updated successfully, but these errors were encountered: