Skin dose map e-mails comparison of None and int

Issue #990 resolved
David Platten created an issue

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)

  1. Log in to comment