Skip to content

Commit

Permalink
fix converter option parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Oct 18, 2024
1 parent a49e4d3 commit b0efeef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geospaas_processing/converters/syntool/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ def parse_converter_options(self, kwargs):
"""
converter_options = self.converter_options.copy()
converter_options_list = []
converter_options.update(kwargs.pop('converter_options', {}))
kwargs_converter_options = kwargs.pop('converter_options', {})
if not isinstance(kwargs_converter_options, dict):
logger.warning("'converter_options' should be a dictionary")
kwargs_converter_options = {}
converter_options.update(kwargs_converter_options)
if converter_options:
converter_options_list.append('-opt')
for key, value in converter_options.items():
Expand Down

0 comments on commit b0efeef

Please sign in to comment.