Skip to content

Commit

Permalink
- Fixing test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jul 20, 2018
1 parent 97d7dd0 commit 2af6c07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/geoserver/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ def cascading_delete(cat, layer_name):
try:
logger.info("Trying to delete Style [%s]" % s.name)
cat.delete(s, purge='true')
workspace, name = layer_name.split(':')
workspace, name = layer_name.split(':') if ':' in layer_name else \
(settings.DEFAULT_WORKSPACE, layer_name)
except FailedRequestError as e:
# Trying to delete a shared style will fail
# We'll catch the exception and log it.
Expand Down

0 comments on commit 2af6c07

Please sign in to comment.