File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,13 @@ def process(self):
64
64
metadata_file = json .load (file )
65
65
66
66
parent_processor = self .dataset .get_parent ().get_own_processor ()
67
- self . dataset . log ( f"Collecting metadata created by { parent_processor . type } " )
68
- if not hasattr ( parent_processor , "map_metadata" ) :
69
- self .log .warning (f"Metadata formatter processor cannot run on { parent_processor .type } ; has no ' map_metadata' method" )
70
- self .dataset .update_status ("Cannot reformat metadata" , is_final = True )
67
+ if parent_processor is None or not hasattr ( parent_processor , "map_metadata" ):
68
+ if parent_processor is not None :
69
+ self .log .warning (f"Metadata formatter processor cannot run on { parent_processor .type } ; map_metadata method not implemented " )
70
+ self .dataset .update_status ("Cannot reformat metadata for this dataset " , is_final = True )
71
71
self .dataset .finish (0 )
72
72
return
73
+ self .dataset .log (f"Collecting metadata created by { parent_processor .type } " )
73
74
74
75
include_failed = self .parameters .get ("include_failed" , False )
75
76
rows = []
You can’t perform that action at this time.
0 commit comments