Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

NoneType has no attribute 'get' #28

@Nathan22211

Description

@Nathan22211

Description

getting this error when enabling the extension: Internal error during connect: 'NoneType' object has no attribute 'get'

Reproduce

add

[extended_template]
path: /home/biqu/printer_data/config/config.yaml```
to the config. make sure the config.yaml file is there or else it complains about that as well.

### Expected behavior

should startup normally

### Extended Macro Config

```bash
nothing added as I couldn't get it to load

Extended Template Config

[extended_template]
path: /home/biqu/printer_data/config/config.yam

Macro Config

not macro related

Macro Python Code

not macro related

Logs

Unhandled exception during connect
Traceback (most recent call last):
  File "/home/biqu/klipper/klippy/klippy.py", line 130, in _connect
    self._read_config()
  File "/home/biqu/klipper/klippy/klippy.py", line 123, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/biqu/klipper/klippy/klippy.py", line 112, in load_object
    self.objects[section] = init_func(config.getsection(section))
  File "/home/biqu/klipper/klippy/extras/extended_template.py", line 253, in load_config
    return PythonFunction(config)
  File "/home/biqu/klipper/klippy/extras/extended_template.py", line 182, in __init__
    self.Loader = self._get_loader()
  File "/home/biqu/klipper/klippy/extras/extended_template.py", line 212, in _get_loader
    ext = self.config_path.split('.')[-1]
AttributeError: 'NoneType' object has no attribute 'split'

Klippy Venv Python

Python 3.X

Installer Python

Python 3.X

Klippy Version

0.13.0-g61c0c8d2

Klippy Version

0.3

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions