Windows Problems with path

$ exam_scan_manager
Traceback (most recent call last):
  File "C:/msys64/home/jonathan/exam-toolbox/exam_scan_tools/barcode_generation_gui.py", line 80, in update_settings
    filename = str((Path(out_folder) / filename).resolve())
  File "C:/msys64/mingw64/lib/python3.8/pathlib.py", line 1043, in __new__
    self = cls._from_parts(args, init=False)
  File "C:/msys64/mingw64/lib/python3.8/pathlib.py", line 684, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "C:/msys64/mingw64/lib/python3.8/pathlib.py", line 668, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType