mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fixing Blind with Anger having the whole mtgdata.txt as Oracle Text
Fixing issue where if Name isn't found in mtgdata.txt an error is written and the card is skipped
This commit is contained in:
@@ -46,6 +46,11 @@ for root, dirnames, filenames in os.walk(folder):
|
||||
name = line.replace('Name:', '')
|
||||
search = '\n%s\n' % name
|
||||
found = mtgData.find(search)
|
||||
|
||||
if found == -1:
|
||||
err.write(cleanName + '... NOT FOUND\n')
|
||||
continue
|
||||
|
||||
endFound = mtgData.find('\n\n', found)
|
||||
|
||||
block = mtgData[found+1:endFound]
|
||||
|
||||
Reference in New Issue
Block a user