File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,13 @@ def __init__(self, pdc_data_src: PDCDataSource):
6363 self .exposure_detail = json .loads (f .read ())
6464
6565 self .uuid = self .config_data .get ("uuid" , None )
66- self .episode_number = int (float (self .config_data .get ("exposure_timestamp" , 0 )))
66+ # Note: We might need to handle this differently if the exposure_timestamp
67+ # is other than numeric (e.g. alphabetic)
68+ # For now, we have assigned 0 to the episode_number
69+ try :
70+ self .episode_number = int (float (self .config_data .get ("exposure_timestamp" , 0 )))
71+ except ValueError :
72+ self .episode_number = 0
6773 if "geojson_file_path" in self .config_data and os .path .exists (self .config_data ["geojson_file_path" ]):
6874 with open (self .config_data ["geojson_file_path" ], "r" , encoding = "utf-8" ) as f :
6975 self .geojson_data = json .loads (f .read ())
You can’t perform that action at this time.
0 commit comments