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:
tritoch
2017-06-22 08:55:27 -05:00
committed by GitHub
parent ba4fdfc9f2
commit 60279ab3f9
2 changed files with 12 additions and 6 deletions

View File

@@ -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"
}
}

View File

@@ -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 = []