Skip to content

Commit

Permalink
[Minor fix] do not overwrite thumbnail if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed May 13, 2019
1 parent 8a746f1 commit 26d862c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/geoserver/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def geoserver_post_save(instance, sender, **kwargs):
if instance.storeType != 'remoteStore':
logger.info("... Creating Thumbnail for Layer [%s]" % (instance.alternate))
try:
create_gs_thumbnail(instance, overwrite=True, check_bbox=True)
create_gs_thumbnail(instance, overwrite=False, check_bbox=True)
except BaseException:
logger.warn("!WARNING! - Failure while Creating Thumbnail for Layer [%s]" % (instance.alternate))

Expand Down

0 comments on commit 26d862c

Please sign in to comment.