Skip to content

Commit

Permalink
Add rules for zodiac cards (#60)
Browse files Browse the repository at this point in the history
closes #54
  • Loading branch information
joshfriend authored Oct 4, 2018
1 parent d0899b7 commit 254ff32
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 32 deletions.
7 changes: 5 additions & 2 deletions database/dbseed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import json
import glob
Expand Down Expand Up @@ -118,7 +118,10 @@ def insert(self, conn):
cards_data = []
for deck in glob.glob(JSON_FILES):
with open(deck, 'rb') as fp:
data = json.load(fp)
try:
data = json.load(fp)
except Exception as e:
raise Exception("Unable to load %s" % deck, e)
cards_data.extend(data)

try:
Expand Down
Loading

0 comments on commit 254ff32

Please sign in to comment.