Mercurial > repos > jankanis > blast2html
comparison blast2html.py @ 103:86bcf17f50ef
improve warning messages
author | Jan Kanis <jan.code@jankanis.nl> |
---|---|
date | Tue, 01 Jul 2014 17:18:09 +0200 |
parents | 87c5402e0ba8 |
children | a22c909c9b57 |
comparison
equal
deleted
inserted
replaced
102:87c5402e0ba8 | 103:86bcf17f50ef |
---|---|
397 continue | 397 continue |
398 f.close() | 398 f.close() |
399 except OSError: | 399 except OSError: |
400 continue | 400 continue |
401 if not links: | 401 if not links: |
402 warnings.warn("No gene bank link templates found in {0}".format(', '.join(files))) | 402 if not files: |
403 warnings.warn("No gene bank link templates found (no blastdb*.loc files found in {0})".format(dir)) | |
404 else: | |
405 warnings.warn("No gene bank link templates found in {0}".format(', '.join(files))) | |
403 return links | 406 return links |
404 | 407 |
405 | 408 |
406 def main(): | 409 def main(): |
407 default_template = path.join(path.dirname(__file__), 'blast2html.html.jinja') | 410 default_template = path.join(path.dirname(__file__), 'blast2html.html.jinja') |