File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -198,10 +198,10 @@ def __get_image_metadata(image_name, annotations):
198198 image_metadata = {"imageName" : image_name }
199199 for annotation in annotations :
200200 if "type" in annotation and annotation ["type" ] == "meta" :
201- image_metadata ["imageHeight" ] = annotation [ "height" ]
202- image_metadata ["imageWidth" ] = annotation [ "width" ]
203- image_metadata ["imageStatus" ] = annotation [ "status" ]
204- image_metadata ["imagePinned" ] = annotation [ "pinned" ]
201+ image_metadata ["imageHeight" ] = annotation . get ( "height" )
202+ image_metadata ["imageWidth" ] = annotation . get ( "width" )
203+ image_metadata ["imageStatus" ] = annotation . get ( "status" )
204+ image_metadata ["imagePinned" ] = annotation . get ( "pinned" )
205205 break
206206 return image_metadata
207207
You can’t perform that action at this time.
0 commit comments