Skip to content
Snippets Groups Projects
Commit 489b664e authored by m431m's avatar m431m :speech_balloon:
Browse files

Added SystemError: catch SystemError: <built-in function delete_layerObj>

parent 911f69d2
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ def gdal_version():
def assert_is_empty(generator, tname, iname):
try:
next(generator)
except StopIteration:
except (StopIteration, SystemError):
pass # Everything is ok.
else:
raise webapp.Forbidden(message="Can't remove \"%s\" because it is an non-empty %s." % (iname, tname))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment