diff --git a/geoportal/c2cgeoportal_geoportal/scaffolds/__init__.py b/geoportal/c2cgeoportal_geoportal/scaffolds/__init__.py index d43c537f66..407c62325a 100644 --- a/geoportal/c2cgeoportal_geoportal/scaffolds/__init__.py +++ b/geoportal/c2cgeoportal_geoportal/scaffolds/__init__.py @@ -143,13 +143,13 @@ def _epsg2bbox(srid): return [r1["x"], r2["y"], r2["x"], r1["y"]] except requests.RequestException: print("Failed to establish a connexion to epsg.io.") - return None except json.JSONDecodeError: print("epsg.io doesn't return a correct json.") - return None except IndexError: print("Unable to get the bbox") - return None + except Exception as exception: + print('unexpected error: {}'.format(str(exception))) + return None def fix_executables(output_dir, patterns, in_const_create_template=False):