|
@@ -81,9 +81,8 @@ def _get_raster_image_as_np(lock, conn, data):
|
|
|
reg.adjust()
|
|
|
|
|
|
array = raster2numpy_img(name, reg, color)
|
|
|
- except:
|
|
|
- raise
|
|
|
finally:
|
|
|
+ # Send even if an exception was raised.
|
|
|
conn.send(array)
|
|
|
|
|
|
|
|
@@ -120,9 +119,8 @@ def _get_vector_table_as_dict(lock, conn, data):
|
|
|
ret = {}
|
|
|
ret["table"] = table
|
|
|
ret["columns"] = columns
|
|
|
- except:
|
|
|
- raise
|
|
|
finally:
|
|
|
+ # Send even if an exception was raised.
|
|
|
conn.send(ret)
|
|
|
|
|
|
|
|
@@ -171,9 +169,8 @@ def _get_vector_features_as_wkb_list(lock, conn, data):
|
|
|
bbox=bbox, feature_type=feature_type, field=field
|
|
|
)
|
|
|
layer.close()
|
|
|
- except:
|
|
|
- raise
|
|
|
finally:
|
|
|
+ # Send even if an exception was raised.
|
|
|
conn.send(wkb_list)
|
|
|
|
|
|
|