Skip to content

Commit

Permalink
Merge pull request #266 from DMSC-Instrument-Data/yaml_safe_load
Browse files Browse the repository at this point in the history
Switched to yaml.safe_load instead of yaml.load
  • Loading branch information
MichaelWedel committed Nov 2, 2017
2 parents b27db19 + 47fdde3 commit 3f8c521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lewis/scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def parse_adapter_options(raw_adapter_options):

for option_string in raw_adapter_options:
try:
adapter_options = yaml.load(option_string)
adapter_options = yaml.safe_load(option_string)
except yaml.YAMLError:
raise LewisException(
'It was not possible to parse this adapter option specification:\n'
Expand Down

0 comments on commit 3f8c521

Please sign in to comment.