# HG changeset patch # User Jan Kanis # Date 1404227889 -7200 # Node ID 86bcf17f50ef632c9182ad700634f85a1a44f166 # Parent 87c5402e0ba84d0c8ca780c64f8012f859fbc28f improve warning messages diff -r 87c5402e0ba8 -r 86bcf17f50ef blast2html.py --- a/blast2html.py Tue Jul 01 16:54:32 2014 +0200 +++ b/blast2html.py Tue Jul 01 17:18:09 2014 +0200 @@ -399,7 +399,10 @@ except OSError: continue if not links: - warnings.warn("No gene bank link templates found in {0}".format(', '.join(files))) + if not files: + warnings.warn("No gene bank link templates found (no blastdb*.loc files found in {0})".format(dir)) + else: + warnings.warn("No gene bank link templates found in {0}".format(', '.join(files))) return links