Skip to content

Commit

Permalink
Merge pull request #56 from bawee/bawee-patch-1
Browse files Browse the repository at this point in the history
Prints out line that is not formatted correctly.
  • Loading branch information
Nouri BEN ZAKOUR committed Oct 6, 2015
2 parents 4552800 + a96d556 commit e9bbd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SeqFindr/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def check_database(database_file):
at_least_one += 1
# Do the check
if len(line.split(',')) != 4 or line.split(',')[-1].count(']') != 1 or line.split(',')[-1].count('[') != 1:
raise Exception("Database is not formatted correctly")
raise Exception("Database is not formatted correctly at this line: " + line)
else:
tmp = line.split(',')[-1]
cur = tmp.split('[')[-1].split(']')[0].strip()
Expand Down

0 comments on commit e9bbd88

Please sign in to comment.