Browse Source

add some error-catching on subrecord type

jmelesky 5 years ago
parent
commit
ed27030fd6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      omw_shuffle_ingredients.py

+ 3 - 0
omw_shuffle_ingredients.py

@@ -96,6 +96,9 @@ def parseINGR(rec):
                 effect_tuples.append((effect, skill, attribute))
 
             ingrrec['effects'] = effect_tuples
+        else:
+            print("unknown subrecord type '%s'" % sr['type'])
+            ppRecord(rec)
 
     ingrrec['file'] = os.path.basename(rec['fullpath'])