taky icon indicating copy to clipboard operation
taky copied to clipboard

Fix cast to string

Open lupettohf opened this issue 1 year ago • 0 comments

A missing cast to string was causing a cash in while builing the systemd file.

Stacktracke:

Building systemd services
systemd failed: expected str, bytes or os.PathLike object, not NoneType
Unhandled exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/taky/cli/__main__.py", line 51, in main
    ret = commands[args.command](args)
  File "/usr/local/lib/python3.10/dist-packages/taky/cli/systemd_cmd.py", line 166, in systemd
    site_path = os.path.dirname(config.get("taky", "cfg_path"))
  File "/usr/lib/python3.10/posixpath.py", line 152, in dirname
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

lupettohf avatar Jul 07 '24 12:07 lupettohf