Skip to content

Commit

Permalink
Only parse citations if app has citations_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Dec 2, 2017
1 parent ab21f30 commit f08f473
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/galaxy/tools/__init__.py
Expand Up @@ -940,9 +940,10 @@ def _parse_citations(self, tool_source):
for citation_elem in citations_elem:
if citation_elem.tag != "citation":
pass
citation = self.app.citations_manager.parse_citation(citation_elem, self.tool_dir)
if citation:
citations.append(citation)
if hasattr(self.app, 'citations_manager'):
citation = self.app.citations_manager.parse_citation(citation_elem, self.tool_dir)
if citation:
citations.append(citation)
return citations

def parse_input_elem(self, page_source, enctypes, context=None):
Expand Down

0 comments on commit f08f473

Please sign in to comment.