Skip to content

Commit

Permalink
thank you test_galaxy_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Nov 12, 2021
1 parent f148442 commit b93b3f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/galaxy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ def _view(self):

@property
def version_object(self):
if self.version is None:
raise Exception("Must call parse() first")
return packaging.version.parse(self.version)

@property
Expand Down Expand Up @@ -2604,7 +2606,7 @@ def exec_before_job(self, app, inp_data, out_data, param_dict=None):
json_params['output_data'].append(data_dict)
if json_filename is None:
json_filename = file_name
if not json_filename:
if json_filename is None:
raise Exception(
"Must call 'exec_before_job' with 'out_data' containing at least one entry."
)
Expand Down Expand Up @@ -2759,7 +2761,7 @@ def exec_before_job(self, app, inp_data, out_data, param_dict=None):
json_params['output_data'].append(data_dict)
if json_filename is None:
json_filename = file_name
if not json_filename:
if json_filename is None:
raise Exception(
"Must call 'exec_before_job' with 'out_data' containing at least one entry."
)
Expand Down

0 comments on commit b93b3f3

Please sign in to comment.