Tool warnings can be either None or a dictionary but not a string

This commit is contained in:
guerler
2023-06-03 16:45:10 +02:00
parent 8b14c96586
commit cb1f4ebd44
+1 -1
View File
@@ -2430,7 +2430,7 @@ class Tool(Dictifiable):
# load job parameters into incoming
tool_message = ""
tool_warnings = ""
tool_warnings = None
if job:
try:
job_params = job.get_param_values(self.app, ignore_errors=True)