Skip to content

Commit

Permalink
[Backport 3.3.x] [Fixes #9250] Upload: task.set_charset(charset) may …
Browse files Browse the repository at this point in the history
…cause blocking error in case the GeoServer catalog has not aligned yet (#9255)
  • Loading branch information
Alessio Fabiani authored May 5, 2022
1 parent 0926bd4 commit 8c10e69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geonode/upload/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,11 @@ def final_step(upload_session, user, charset="UTF-8", layer_id=None):
return saved_layer

task = import_session.tasks[0]
task.set_charset(charset)
try:
task.set_charset(charset)
except Exception as e:
logger.exception(e)

overwrite = task.updateMode == 'REPLACE'
# @todo see above in save_step, regarding computed unique name
name = task.layer.name
Expand Down

0 comments on commit 8c10e69

Please sign in to comment.