Skip to content
Snippets Groups Projects
Commit 1e715893 authored by dmt's avatar dmt
Browse files

Check user input for StackIteration param.

parent a8a5c666
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,13 @@ class StackIterations:
return self.stack_iterations
def __set__(self, instance, value):
self.stack_iterations = value
if isinstance(value, int):
self.stack_iterations = value
elif isinstance(value, str):
try:
self.stack_iterations = int(value)
except Exception as error:
print(error)
class LearnblockMinimum:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment