Skip to content

Commit

Permalink
fix: mapserver env set if old_value == 'None'
Browse files Browse the repository at this point in the history
can happen for rarely configured StorageAuths which have a string 'None' as a value
  • Loading branch information
lubojr committed Apr 16, 2024
1 parent 3f643d0 commit f0eb0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eoxserver/contrib/mapserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def set_env(map_obj, env, fail_on_override=False, return_old=False):
if fail_on_override or return_old:
old_value = map_obj.getConfigOption(str(key))
if fail_on_override and old_value is not None \
and old_value != value:
and old_value != value and old_value != 'None':
raise Exception(
'Would override previous value of %s: %s with %s'
% (key, old_value, value)
Expand Down

0 comments on commit f0eb0a5

Please sign in to comment.