mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +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 )
|
||||
|
||||
msg = getNullTermParam(header)
|
||||
if args.DUMP_MSG:
|
||||
print( 'msg: {}'.format(msg))
|
||||
md5Sum = getNullTermParam(header)
|
||||
print( 'header: read sum: {}'.format(md5Sum), file=sys.stderr )
|
||||
try: # older wordlists won't have these
|
||||
msg = getNullTermParam(header)
|
||||
if args.DUMP_MSG:
|
||||
print( 'msg: {}'.format(msg))
|
||||
md5Sum = getNullTermParam(header)
|
||||
print( 'header: read sum: {}'.format(md5Sum), file=sys.stderr )
|
||||
except:
|
||||
md5Sum = None
|
||||
|
||||
if args.GET_SUM:
|
||||
print( '{}'.format(md5Sum), file=sys.stdout )
|
||||
|
|
Loading…
Reference in a new issue