FreeOpcUa / opcua-modeler

GUI to create OPC UA models and export them as XML
GNU General Public License v3.0
246 stars 88 forks source link

Debian stretch / opcua-modeler fails to start / recent files #81

Open darxridge opened 5 years ago

darxridge commented 5 years ago

System: python3.7

Stack dump: Traceback (most recent call last): File "app.py", line 3, in main() File "/home/rich/src/opcua-modeler/opcua-modeler/uamodeler/uamodeler.py", line 544, in main modeler = UaModeler() File "/home/rich/src/opcua-modeler/opcua-modeler/uamodeler/uamodeler.py", line 407, in init self._update_recent_files_ui() File "/home/rich/src/opcua-modeler/opcua-modeler/uamodeler/uamodeler.py", line 428, in _update_recent_files_ui for idx, path in enumerate(self._recent_files): TypeError: 'NoneType' object is not iterable Makefile:6: recipe for target 'run' failed make: *** [run] Error 1

Suggestion: uamodeler.py[428] for idx, path in enumerate(self._recent_files or []):

oroulet commented 5 years ago

thanks. Fixed in master just now (I did no see your suggestion but it was good ;-) )

oroulet commented 5 years ago

feel free to fix other small things like this one