Skip to content

Commit

Permalink
- check for None in conversion script
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Jul 30, 2015
1 parent cc94341 commit 494d5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/ConvertBuildingsReferenceToCSV.py
Expand Up @@ -11,7 +11,7 @@ def convertDir(indir,outdir):
v = {}
for line in f.readlines():
line = line.strip().split('=')
if line[1][0] == '[':
if (line is not None) and (line[1][0] == '['):
l = [str(float(s)) for s in line[1].strip('[]').split(',')]
if len(l)==2:
diff = float(l[1])-float(l[0])
Expand Down

0 comments on commit 494d5cf

Please sign in to comment.