semuconsulting / PyGPSClient

Python Graphical GPS Client Application supporting NMEA, UBX, RTCM3, NTRIP & SPARTN Protocols
BSD 3-Clause "New" or "Revised" License
521 stars 104 forks source link

ValueError if pygpsclient starts without default configuration file #63

Closed semuadmin closed 1 year ago

semuadmin commented 1 year ago

Describe the bug

A clear and concise description of what the bug is.

pygpsclient v1.3.23 returns an error on start if there's no default configuration file:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/bin/pygpsclient", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pygpsclient/__main__.py", line 47, in main
    App(root, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pygpsclient/app.py", line 185, in __init__
    _, self.config = self.file_handler.load_config(configfile)
    ^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

To Reproduce

Steps to reproduce the behaviour:

Expected Behaviour

No error, continues with default hard-coded configuration.