Skip to content

Commit a9e155f

Browse files
authored
- extra fix, in case attributeerror is thrown by missing box (#296)
1 parent cc2e8a0 commit a9e155f

File tree

3 files changed

+907
-0
lines changed

3 files changed

+907
-0
lines changed

pygeometa/schemas/iso19139/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def import_(self, metadata: str) -> dict:
148148
ast.literal_eval(identification.extent.boundingBox.maxy)
149149
]
150150
except ValueError as err:
151+
LOGGER.info(f'boundingBox empty: {err}')
152+
except AttributeError as err:
151153
LOGGER.info(f'boundingBox missing: {err}')
152154

153155
temp_extent = {

0 commit comments

Comments
 (0)