mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Create empty history if history is unavailable during api call
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user