Introduced error management to prevent crashes and added prints for error reporting during runtime
This commit is contained in:
@@ -31,8 +31,12 @@ def buildSelect(action, outputs):
|
||||
#print(outputs[f"{action.alias}_select"])
|
||||
|
||||
return select_data, action, outputs
|
||||
except (KeyError, TypeError):
|
||||
print("Error in selection")
|
||||
except KeyError as error:
|
||||
print(f"Error in selection of {error} during {action.name}")
|
||||
|
||||
except TypeError as error:
|
||||
print(f"TypeError during select: {error} during {action.name}")
|
||||
|
||||
#select_data = ["no selection"]
|
||||
return select_data, action, outputs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user