roam-qgis / Roam

Simple data collection built using QGIS.
http://roam-docs.readthedocs.org/en/latest/
GNU General Public License v2.0
171 stars 61 forks source link

Unable to save feature with a form that has no image. #383

Closed PhilipWhitten closed 7 years ago

PhilipWhitten commented 7 years ago

If I complete a form, but leave the image empty I get the following error:

Error: AttributeError: 'NoneType' object has no attribute 'save' Traceback (most recent call last): File "C:\IntraMaps Roam Road Tablet\libs.\roam\editorwidgets\featureformwidget.py", line 105, in save_feature File "C:\IntraMaps Roam Road Tablet\libs.\roam\api\featureform.py", line 866, in save File "C:\IntraMaps Roam Road Tablet\libs.\roam\api\featureform.py", line 848, in save_images File "C:\IntraMaps Roam Road Tablet\libs.\roam\editorwidgets\imagewidget.py", line 491, in save File "C:\IntraMaps Roam Road Tablet\libs.\roam\editorwidgets\imagewidget.py", line 112, in save_image AttributeError: 'NoneType' object has no attribute 'save'

bzeeb commented 7 years ago

Tested, issue resolved