Create empty history if history is unavailable during api call

This commit is contained in:
guerler
2015-05-05 14:07:24 -04:00
parent 494f5dc643
commit 62abcd0b74
+2
View File
@@ -1657,6 +1657,8 @@ class BaseDataToolParameter( ToolParameter ):
assert trans is not None, "%s requires a trans" % class_name
if history is None:
history = trans.get_history()
if history is None:
history = trans.get_history( create=True )
assert history is not None, "%s requires a history" % class_name
return history