Add none-checking to schedule_format_int_to_enum

This commit is contained in:
Dave O'Connor 2021-01-19 14:04:07 +00:00
parent c6d62b5852
commit b54e00fbe3
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ class ScheduleFormat(enum.Enum):
def schedule_format_int_to_enum(int_format):
if int_format is None:
return None
if int_format == 0:
return ScheduleFormat.ZERO
elif int_format == 1: