ValueError if pygpsclient starts without default configuration file
semuadmin opened this issue · 0 comments
semuadmin commented
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:
- Remove any existing pygpsclient.json file from user's home directory.
- Start pygpsclient
Expected Behaviour
No error, continues with default hard-coded configuration.