Skip to content

Commit

Permalink
Update oracle_sde.py
Browse files Browse the repository at this point in the history
  • Loading branch information
floptical authored Jun 21, 2024
1 parent 9036ae5 commit 1e034fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geopetl/oracle_sde.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,8 @@ def write(self, rows, srid=None, table_srid=None,
geom = 'POINT EMPTY'
try:
row_geom_type = re.match('[A-Z]+', geom).group()
except AttributeError:
raise Exception(f'Could not find geometry type, is the table SDE registered? Geom looks like: {geom}')
# For "bytes-like objects"
except TypeError:
row_geom_type = re.match(b'[A-Z]+', geom).group()
Expand Down

0 comments on commit 1e034fe

Please sign in to comment.