Errors in RF export with None data
Issue #807
resolved
Refs issue #750 PHE 2019 DX and RF exports
If NoneType
found instead of string in acquisition_protocol
, or in fluoro_frame_rates
then a Type error is thrown:
[2020-01-06 22:50:54,341: ERROR/ForkPoolWorker-4] Task remapp.exports.rf_export.rf_phe_2019[a1dc0122-f793-47b5-a15e-2c5af2bb4247] raised unexpected: TypeError('sequence item 0: expected str instance, NoneType found',) Traceback (most recent call last): File "/path/vep3d22/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task R = retval = fun(*args, **kwargs) File "/path/vep3d22/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__ return self.run(*args, **kwargs) File "/otherpath/openrem/remapp/exports/rf_export.py", line 883, in rf_phe_2019 u' | '.join(fluoro_events.order_by().values_list('acquisition_protocol', flat=True).distinct()), TypeError: sequence item 0: expected str instance, NoneType found
and
[2020-01-07 08:26:07,145: ERROR/ForkPoolWorker-4] Task remapp.exports.rf_export.rf_phe_2019[26d05cc7-6989-4632-b79c-9e9eb68b3b6b] raised unexpected: TypeError('unsupported format string passed to NoneType.__format__',) Traceback (most recent call last): File "/path/vep3d22/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task R = retval = fun(*args, **kwargs) File "/path/vep3d22/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__ return self.run(*args, **kwargs) File "/otherpath/openrem/remapp/exports/rf_export.py", line 897, in rf_phe_2019 column_aq += u' | '.join(format(x, "1.1f") for x in fluoro_frame_rates) File "/otherpath/openrem/remapp/exports/rf_export.py", line 897, in <genexpr> column_aq += u' | '.join(format(x, "1.1f") for x in fluoro_frame_rates) TypeError: unsupported format string passed to NoneType.__format__
Comments (5)
-
reporter -
reporter Fixing None TypeErrors in PHE 2019 RF export. Refs
#807→ <<cset 2bdc8cf7637f>>
-
reporter Adding ref
#807to changes to fix ref#807. Never had a separate branch, was committed to develop. Bad Ed.→ <<cset c945696ebfb0>>
-
reporter Adding ref
#807to changes to fix ref#807. Never had a separate branch, was committed to develop. Bad Ed.→ <<cset c945696ebfb0>>
-
reporter - changed status to resolved
Hmm. DIdn't get the syntax right to close the issue. Doing it manually.
- Log in to comment
Consequence of test data that might be a bit ropy, but could occur in the wild depending on how clean the fluoro system output is!