opensourceBIM / python-mvdxml

A mvdXML checker and w3c SPARQL converter, as an IfcOpenShell submodule or stand-alone.
GNU Lesser General Public License v3.0
33 stars 12 forks source link

saving spreadsheet_export true and the folder non-existing #7

Closed kavehAlahdin closed 4 years ago

kavehAlahdin commented 4 years ago

In the get_data()method, if the spreadsheet_export is True , but the folder spreadsheet_outputin the python file path not exists, it throws an exception.

Error:
         [Errno 2] No such file or directory: 'spreadsheet_output/output_non_filtered.xlsx'
Traceback (most recent call last):
  File "craneplanningIfc.py", line 144, in <module>
    craneplnIfc.getRelevantEntities()
  File "craneplanningIfc.py", line 62, in getRelevantEntities
    for a in all_data:
TypeError: 'NoneType' object is not iterable

After creating that folder manually in the path, it works fine.

johltn commented 4 years ago

This has been fixed in 502b845