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.
In the
get_data()
method, if the spreadsheet_export is True , but the folderspreadsheet_output
in the python file path not exists, it throws an exception.After creating that folder manually in the path, it works fine.