Fix catalog parsing, add unit-tests

Fixes issues with conflated nodes and skipped previews in the
catalog XML.
This commit is contained in:
James Turner
2017-02-10 11:55:30 +00:00
parent 93b71e29e6
commit acb8a7a793
8 changed files with 179 additions and 9 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import shutil
import subprocess
import time
import sgprops
import sys
CATALOG_VERSION = 4
@@ -125,7 +126,7 @@ def scan_aircraft_dir(aircraft_dir):
if d == None:
continue
except:
print "Skipping set file since couldn't be parsed:", os.path.join(aircraft_dir, file)
print "Skipping set file since couldn't be parsed:", os.path.join(aircraft_dir, file), sys.exc_info()[0]
continue
setDicts.append(d)