parent
65905cf656
commit
53bc2a7ccc
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,8 @@ def mtg_open_file(fname, verbose = False,
|
||||||
cards += [card]
|
cards += [card]
|
||||||
elif card.parsed:
|
elif card.parsed:
|
||||||
invalid += 1
|
invalid += 1
|
||||||
|
if verbose:
|
||||||
|
print 'Invalid card: ' + json_cardname
|
||||||
else:
|
else:
|
||||||
unparsed += 1
|
unparsed += 1
|
||||||
|
|
||||||
|
@ -148,6 +150,8 @@ def mtg_open_file(fname, verbose = False,
|
||||||
valid += 1
|
valid += 1
|
||||||
elif card.parsed:
|
elif card.parsed:
|
||||||
invalid += 1
|
invalid += 1
|
||||||
|
if verbose:
|
||||||
|
print 'Invalid card: ' + json_cardname
|
||||||
else:
|
else:
|
||||||
unparsed += 1
|
unparsed += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue