Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
Merge tag 'upstream/1.3' into debian-debian
Browse files Browse the repository at this point in the history
Upstream version 1.3
  • Loading branch information
lpenz committed May 21, 2013
2 parents 0cccfce + 0c8668c commit b12eb27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atdtool
Expand Up @@ -17,7 +17,7 @@ from xml.etree import ElementTree


PROGRAM_NAME = "atdtool"
PROGRAM_VERSION = "1.2"
PROGRAM_VERSION = "1.3"


def checkDocument(cfg, fd):
Expand Down Expand Up @@ -170,7 +170,7 @@ def showerrs(filename, fd, errs):
exactstr = ''
if not t.find(e.precontext, e.string):
exactstr = ' (?)'
print('%s:%d:%d:%s %s "%s"' % (filename, t.line, t.col, exactstr, e.description, t.words))
print('%s:%d:%d:%s %s "%s"' % (filename, t.line, t.col, exactstr, e.description, t.words if hasattr(t, 'words') else ''))
if len(e.suggestions) > 0:
print(' suggestions: %s' % ', '.join(e.suggestions))

Expand Down

0 comments on commit b12eb27

Please sign in to comment.