Skip to content

Commit

Permalink
Correcting an error in exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Schaller committed Jan 28, 2022
1 parent ed8f08d commit cffe7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FINT_CH_Process/Processing/fintch_processing_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def generate_grid(min_x, min_y, max_x, max_y, out_shape_path, crs=2056, step_x=2
out_layer = None
try:
out_layer = out_ds.CreateLayer(out_shape_path,srs=srs,geom_type=ogr.wkbPolygon )
except Error as ex:
except Exception as ex:
logger.error("Error generating grid ", out_shape_path)
logger.error(traceback.format_exception(*sys.exc_info()))
raise ex
Expand Down

0 comments on commit cffe7e1

Please sign in to comment.