zip export fails when no fit is displayed
Traceback:
[2017-05-17 20:13:10,733: ERROR/PoolWorker-7] Task SPTGUI.tasks.get_zip[4c28f40b-e376-4556-a3c9-eeb1a0e80aaa] raised unexpected: TypeError("argument of type 'NoneType' is not iterable",)
Traceback (most recent call last):
File "/home/maxime/.envs/fastSPT/local/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/maxime/.envs/fastSPT/local/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__
return self.run(*args, **kwargs)
File "/home/maxime/fastSPT/SPTGUI/tasks.py", line 400, in get_zip
collect_download_for_zip(tmpdirname, do, ana, da) ## Create the folder architecture
File "/home/maxime/fastSPT/SPTGUI/tasks.py", line 504, in collect_download_for_zip
elif "fitp" in coefs and "fitparams" in coefs["fitp"]:
TypeError: argument of type 'NoneType' is not iterable