Skip to content

Commit

Permalink
Fix citations linter for tools that actually have citations.
Browse files Browse the repository at this point in the history
Thanks to @mr-c for the bug report, fixes #2.
  • Loading branch information
jmchilton committed Oct 7, 2014
1 parent 388d01e commit af39061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy/tools/linters/citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def lint_citations(tool_xml, lint_ctx):
return

valid_citations = 0
for citation in citations.children():
for citation in citations[0]:
if citation.tag != "citation":
lint_ctx.warn("Unknown tag discovered in citations block [%s], will be ignored." % citation.tag)
if "type" in citation.attrib:
Expand Down

0 comments on commit af39061

Please sign in to comment.