Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Fix import error with malformed import options
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed May 16, 2023
1 parent 488d8be commit 7c55702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ramses/ram_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from .constants import FolderNames, LogLevel
from .logger import log

theVersion = "0.8.4-Beta"
theVersion = "0.8.5-Beta"

class RamSettings( object ):
"""Gets and saves settings used by Ramses.
Expand Down
2 changes: 2 additions & 0 deletions ramses/ramses.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ def replaceItem(self, current_file_path, filePath, item, step=None, importOption
optionStr = f.customSettings()
if optionStr != "":
options = yaml.safe_load( optionStr )
if 'formats' not in importOptions:
continue
if options['format'] == extension:
importOptions['formats'].append( options )
break
Expand Down

0 comments on commit 7c55702

Please sign in to comment.