Refined error and None type handling for select_data
This commit is contained in:
@@ -27,8 +27,8 @@ def buildSelect(action, outputs):
|
||||
#outputs[{action.select["source"]}] = select_data
|
||||
outputs[f"{action.alias}_select"] = select_data
|
||||
|
||||
#print("DEBUGGING", action.alias)
|
||||
#print(outputs[f"{action.alias}_select"])
|
||||
if select_data is None:
|
||||
print(f"No data selected during {action.name}")
|
||||
|
||||
return select_data, action, outputs
|
||||
except KeyError as error:
|
||||
@@ -37,6 +37,5 @@ def buildSelect(action, outputs):
|
||||
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