dynasticorpheus / gigasetelements-cli

Gigaset Elements - python based command line interface
GNU General Public License v2.0
35 stars 11 forks source link

collect_hw() fails if no camera is connected #1

Closed rhelling closed 9 years ago

rhelling commented 9 years ago

Version: 1.3.4 and 1.3.5 (most recent atm)

Traceback (most recent call last): File "/usr/bin/gigasetelements-cli", line 11, in sys.exit(main()) File "/usr/lib/python2.7/site-packages/gigasetelements/gigasetelements.py", line 512, in main collect_hw() File "/usr/lib/python2.7/site-packages/gigasetelements/gigasetelements.py", line 241, in collect_hw if 'id' in camera_data[0] and len(camera_data[0]['id']) == 12: IndexError: list index out of range

dynasticorpheus commented 9 years ago

Thanks for letting me know :) Should be fixed now but please confirm before I close the issue.

rhelling commented 9 years ago

Fix works for me! Thanks for fixing and the quick response.