You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try:
cat.add_data_to_store(ds, name, data,
overwrite=overwrite,
charset=charset)
return ds, cat.get_resource(name, store=ds)
except Exception:
# FIXME(Ariel): This is not a good idea, today there was a problem
# accessing postgis that caused add_data_to_store to fail,
# for the same reasons the call to delete_from_postgis below failed too
# I am commenting it out and filing it as an issue
#delete_from_postgis(name)
raise
The text was updated successfully, but these errors were encountered:
Options to fix it are for example adding specific types to Exception, in which cases delete_from_postgis is not expected to fail or adding an inner try/except block (most likely not a good idea according to the Zen of Python: Flat is better than nested")
# By Tyler Garner (2) and others
# Via Jeffrey Johnson (1) and Tyler Garner (1)
* 'master' of https://github.com/GeoNode/geonode:
Bump `geonode-user-accounts` version to 1.0.10. FixesGeoNode#1856.
Add an inner try/except block when trying to clean up and delete_from_postgis. ClosesGeoNode#1058
Minor profile page enhancements. FixesGeoNode#1975.
Updated changelog for version 2.4b16
Conflicts:
geonode/static/geonode/css/base.css
The code in question is:
The text was updated successfully, but these errors were encountered: