Browse Source

Include line number only if relevant

pull/176/head
Oliverpool 9 years ago
parent
commit
1340bbed02
  1. 5
      patacrep/songs/errors.py

5
patacrep/songs/errors.py

@ -24,7 +24,10 @@ class SongSyntaxError(SongError):
self.line = line
def __str__(self):
return "Line {}: {}".format(self.line, self.message)
if self.line is not None:
return "Line {}: {}".format(self.line, self.message)
else:
return self.message
# class FileError(SongError):
# type = "file"

Loading…
Cancel
Save