mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-06 05:24:46 +01:00
fix to print older wordlists with tiny headers
This commit is contained in:
parent
2056291cd5
commit
57ab42223a
1 changed files with 8 additions and 5 deletions
|
@ -155,11 +155,14 @@ def process(args):
|
||||||
|
|
||||||
print( 'header: read nWords: {}'.format(nWords ), file=sys.stderr )
|
print( 'header: read nWords: {}'.format(nWords ), file=sys.stderr )
|
||||||
|
|
||||||
|
try: # older wordlists won't have these
|
||||||
msg = getNullTermParam(header)
|
msg = getNullTermParam(header)
|
||||||
if args.DUMP_MSG:
|
if args.DUMP_MSG:
|
||||||
print( 'msg: {}'.format(msg))
|
print( 'msg: {}'.format(msg))
|
||||||
md5Sum = getNullTermParam(header)
|
md5Sum = getNullTermParam(header)
|
||||||
print( 'header: read sum: {}'.format(md5Sum), file=sys.stderr )
|
print( 'header: read sum: {}'.format(md5Sum), file=sys.stderr )
|
||||||
|
except:
|
||||||
|
md5Sum = None
|
||||||
|
|
||||||
if args.GET_SUM:
|
if args.GET_SUM:
|
||||||
print( '{}'.format(md5Sum), file=sys.stdout )
|
print( '{}'.format(md5Sum), file=sys.stdout )
|
||||||
|
|
Loading…
Reference in a new issue