Skip to content

Commit

Permalink
Fixed format string to retain compatibility with python<=3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonardi committed Feb 10, 2019
1 parent be74b24 commit 5c4c9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bedparse/bedparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def validateFormat(args):
try:
validatedLine=bedline(line.split('\t'))
except BEDexception as formatException:
raise BEDexception(f"\nThis doesn't appear to be a valid BED file. There was an error at line {n+1}:\n\t\"{formatException}\"")
raise BEDexception("\nThis doesn't appear to be a valid BED file. There was an error at line %s:\n\t\"%s\"" %(n+1, formatException))
tsvfile.close()
else:
validatedLine.print()
Expand Down

0 comments on commit 5c4c9fc

Please sign in to comment.