Merge pull request #15 from SabreCat/verbose-invalid

Print invalid cardnames
This commit is contained in:
Bill 2017-01-17 15:43:38 -08:00 committed by GitHub
commit 5e09c6542e

View file

@ -130,6 +130,8 @@ def mtg_open_file(fname, verbose = False,
cards += [card]
elif card.parsed:
invalid += 1
if verbose:
print 'Invalid card: ' + json_cardname
else:
unparsed += 1
@ -148,6 +150,8 @@ def mtg_open_file(fname, verbose = False,
valid += 1
elif card.parsed:
invalid += 1
if verbose:
print 'Invalid card: ' + json_cardname
else:
unparsed += 1