DJ2LS / FreeDATA

A free, open-source, multi-platform application for sending files and messages, using the codec2 HF modems
https://wiki.freedata.app/
GNU General Public License v3.0
146 stars 18 forks source link

new config crashes server #582

Closed DJ2LS closed 9 months ago

DJ2LS commented 10 months ago
simon@dj2ls-remote:~/FreeDATA$ ./tools/run-server.sh 
Using config from modem/config.ini
2023-12-25 10:44:11 [info     ] [CFG] config init              file=modem/config.ini
2023-12-25 10:44:11 [info     ] [CFG] reading...
Traceback (most recent call last):
  File "/home/simon/.local/bin/flask", line 8, in <module>
    sys.exit(main())
  File "/home/simon/.local/lib/python3.10/site-packages/flask/cli.py", line 1064, in main
    cli.main()
  File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/simon/.local/lib/python3.10/site-packages/click/decorators.py", line 92, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/simon/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/simon/.local/lib/python3.10/site-packages/flask/cli.py", line 912, in run_command
    raise e from None
  File "/home/simon/.local/lib/python3.10/site-packages/flask/cli.py", line 898, in run_command
    app = info.load_app()
  File "/home/simon/.local/lib/python3.10/site-packages/flask/cli.py", line 309, in load_app
    app = locate_app(import_name, name)
  File "/home/simon/.local/lib/python3.10/site-packages/flask/cli.py", line 219, in locate_app
    __import__(module_name)
  File "/home/simon/FreeDATA/modem/server.py", line 57, in <module>
    app.service_manager = service_manager.SM(app)
  File "/home/simon/FreeDATA/modem/service_manager.py", line 19, in __init__
    self.config = self.app.config_manager.read()
  File "/home/simon/FreeDATA/modem/config.py", line 170, in read
    result[section][setting] = self.handle_setting(
  File "/home/simon/FreeDATA/modem/config.py", line 116, in handle_setting
    if self.config_types[section][setting] == list:
KeyError: 'rx'