Skip to content

Commit

Permalink
smartvisu plugin: important fix in logger message when visu style unk…
Browse files Browse the repository at this point in the history
…nown
  • Loading branch information
onkelandy committed Sep 11, 2024
1 parent 6db656b commit c10b45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartvisu/svgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def __init__(self, plugin_instance, visu_definition=None):
self.smartvisu_version = plugin_instance.smartvisu_version
self.overwrite_templates = plugin_instance.overwrite_templates
self.visu_style = plugin_instance.visu_style.lower()
if not self.visu_style in ['std','blk']:
if self.visu_style not in ['std', 'blk']:
self.visu_style = 'std'
self.logger.warning("SmartVisuGenerator: visu_style '{}' unknown, using visu_style '{1}'".format(plugin_instance.visu_style, self.visu_style))
self.logger.warning("SmartVisuGenerator: visu_style '{0}' unknown, using visu_style '{1}'".format(plugin_instance.visu_style, self.visu_style))
self.list_deprecated_warnings = plugin_instance.list_deprecated_warnings

self.logger.info("Generating pages for smartVISU v{}".format(self.smartvisu_version))
Expand Down

0 comments on commit c10b45d

Please sign in to comment.