Skin dose map e-mails comparison of None and int
Issue #990
resolved
If the study DAP value is zero then a comparison on line 163 of send_rf_high_dose_alert_email
causes an error which appears in the task log:
Traceback (most recent call last): File "e:\openrem-src\openrem\remapp\tools\background.py", line 148, in run_as_task func(*args, **kwargs)
File "e:\openrem-src\openrem\remapp\tools\make_skin_map.py", line 406, in make_skin_map save_openskin_structure(study, return_structure)
File "e:\openrem-src\openrem\remapp\tools\save_skin_map_structure.py", line 73, in save_openskin_structure send_rf_high_dose_alert_email(study.pk)
File "e:\openrem-src\openrem\remapp\tools\send_high_dose_alert_emails.py", line 163, in send_rf_high_dose_alert_email
this_study_dap >= alert_levels["alert_total_dap_rf"] TypeError: '>=' not supported between instances of 'NoneType' and 'int'
Comments (3)
-
reporter -
reporter Merged in issue990skinDoseEmailError (pull request #574)
Added or 0 to the comparison of his_study_dap to the DAP alert level. Refs issue
#990Approved-by: Ed McDonagh
Fixes issue
#990→ <<cset d3ac6e38d7c0>>
-
reporter - changed status to resolved
Merged in issue990skinDoseEmailError (pull request #574)
Added or 0 to the comparison of his_study_dap to the DAP alert level. Refs issue
#990Approved-by: Ed McDonagh
Fixes issue
#990→ <<cset d3ac6e38d7c0>>
- Log in to comment
Added or 0 to the comparison of his_study_dap to the DAP alert level. Refs issue
#990→ <<cset 4b409d3984a6>>