mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-09-08 09:45:33 -05:00
Error Fix (#43)
* Errors with loading input files now cause CI to fail * Misc syntax corrections * Images for Reason // Believe
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
"Nissa's Encouragement": {
|
||||
"url": "http://media.wizards.com/2017/hou/en_pp5zBW3i6P.png"
|
||||
},
|
||||
Woodland Stream": {
|
||||
"Woodland Stream": {
|
||||
"url": "http://media.wizards.com/2017/hou/en_EyPJjr8lQA.png"
|
||||
},
|
||||
"Nicol Bolas, the Deceiver": {
|
||||
@@ -113,5 +113,11 @@
|
||||
"Nissa, Genesis Mage": {
|
||||
"loyalty": "5",
|
||||
"url": "http://media.wizards.com/2017/images/daily/en_VlI3HOtQc3.png"
|
||||
}
|
||||
},
|
||||
"Reason": {
|
||||
"url": "http://media-dominaria.cursecdn.com/avatars/132/329/636336513732500758.png"
|
||||
},
|
||||
"Believe": {
|
||||
"url": "http://media-dominaria.cursecdn.com/avatars/132/329/636336513732500758.png"
|
||||
}
|
||||
}
|
||||
|
||||
8
main.py
8
main.py
@@ -25,28 +25,28 @@ try:
|
||||
except Exception as ex:
|
||||
print "Unable to load file: set_info\nException information:\n" + str(ex.args) + \
|
||||
"\nUnable to load file: set_info"
|
||||
sys.exit()
|
||||
sys.exit("Unable to load file: set_info")
|
||||
try:
|
||||
with open('cards_manual') as data_file:
|
||||
manual_sets = json.load(data_file)
|
||||
except Exception as ex:
|
||||
print "Unable to load file: cards_manual\nException information:\n" + str(ex.args) + \
|
||||
"\nUnable to load file: cards_manual"
|
||||
sys.exit()
|
||||
sys.exit("Unable to load file: cards_manual")
|
||||
try:
|
||||
with open('cards_corrections') as data_file:
|
||||
card_corrections = commentjson.load(data_file)
|
||||
except Exception as ex:
|
||||
print "Unable to load file: cards_corrections\nException information:\n" + str(ex.args) + \
|
||||
"\nUnable to load file: cards_corrections"
|
||||
sys.exit()
|
||||
sys.exit("Unable to load file: cards_corrections")
|
||||
try:
|
||||
with open('cards_delete') as data_file:
|
||||
delete_cards = commentjson.load(data_file)
|
||||
except Exception as ex:
|
||||
print "Unable to load file: cards_delete\nException information:\n" + str(ex.args) + \
|
||||
"\nUnable to load file: cards_delete"
|
||||
sys.exit()
|
||||
sys.exit("Unable to load file: cards_delete")
|
||||
|
||||
errorlog = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user