Skip to content

Commit

Permalink
processflowdiagram: execption when image not found
Browse files Browse the repository at this point in the history
  • Loading branch information
clavay authored and trombastic committed Feb 22, 2024
1 parent 9c927ac commit 7d6f53f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyscada/hmi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,11 @@ def gen_html(self, **kwargs):
)
except ValueError:
logger.info(
"ProcessFlowDiagram (%s) has no background image defined" % self
f"ProcessFlowDiagram {self} has no background image defined"
)
except FileNotFoundError as e:
logger.info(
f"ProcessFlowDiagram {self} : {e}"
)
sidebar_content = None
opts = dict()
Expand Down

0 comments on commit 7d6f53f

Please sign in to comment.