Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unicycler datatype comparisons (galaxyproject#6131)
Fixes https://sentry.galaxyproject.org/share/issue/f5ec29350256422da159e25b0875b7ee/ when users attempt to run jobs with unexpected fastq datatypes like fastqcssanger.gz, which is alloed because basic fastq/fastq.gz are allowd (this is a mistake IMO ...): ``` NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond NotFound: cannot find 'lr' File "galaxy/jobs/runners/__init__.py", line 297, in prepare_job job_wrapper.prepare() File "galaxy/jobs/__init__.py", line 1260, in prepare ) = tool_evaluator.build() File "galaxy/tools/evaluation.py", line 588, in build global_tool_logs(self._build_command_line, config_file, "Building Command Line") File "galaxy/tools/evaluation.py", line 98, in global_tool_logs raise e File "galaxy/tools/evaluation.py", line 94, in global_tool_logs return func() File "galaxy/tools/evaluation.py", line 611, in _build_command_line command_line = fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 115, in fill_template return fill_template( File "galaxy/util/template.py", line 123, in fill_template raise first_exception or e File "galaxy/util/template.py", line 87, in fill_template return unicodify(t, log_exception=False) File "galaxy/util/__init__.py", line 1183, in unicodify value = str(value) File "Cheetah/Template.py", line 1053, in __unicode__ return getattr(self, mainMethName)() File "cheetah_DynamicallyCompiledCheetahTemplate_1720043166_6268568_19017.py", line 172, in respond ``` This is hopefully an uncontroversial fix.
- Loading branch information