fix: self._db did not exist, use self._store #93

Manually merged
viewit merged 1 commits from Pavulon87/KX-Bridge-Release:fix/db-not-exist into nightly 2026-07-16 21:35:59 +02:00
Contributor

Description

This PR fixes a reference to a non-existent database object when reading filament metadata from a G-code file.

The code was still using self._db, which is no longer present. It has been replaced with self._store, matching the rest of the codebase and restoring the expected behavior.

This is a small consistency fix with no functional changes beyond using the correct storage object.

N/A

Type

  • Bug fix
  • Feature
  • Documentation
  • Refactoring

Tested with

  • OrcaSlicer Version: 2.5.0-dev-kx1
  • Printer: Kobra X
  • Moonraker/Klipper Version:

Checklist

  • Tests added/updated
  • CHANGELOG.md updated
  • No debug code included
## Description This PR fixes a reference to a non-existent database object when reading filament metadata from a G-code file. The code was still using `self._db`, which is no longer present. It has been replaced with `self._store`, matching the rest of the codebase and restoring the expected behavior. This is a small consistency fix with no functional changes beyond using the correct storage object. ## Related Issue N/A ## Type - [X] Bug fix - [ ] Feature - [ ] Documentation - [ ] Refactoring ## Tested with - OrcaSlicer Version: 2.5.0-dev-kx1 - Printer: Kobra X - Moonraker/Klipper Version: ## Checklist - [ ] Tests added/updated - [ ] CHANGELOG.md updated - [X] No debug code included
Pavulon87 added 1 commit 2026-07-16 15:21:54 +02:00
fix: self._db did not exist, use self._store
Some checks failed
Nightly Build / build (push) Has been cancelled
PR Check / lint-and-test (pull_request) Has been cancelled
03089db6af
viewit manually merged commit 03089db6af into nightly 2026-07-16 21:35:59 +02:00
Owner

Merged, thanks @Pavulon87! Good catch — this dated back to an earlier fix of mine that introduced the self._db typo; the try/except around it silently swallowed the resulting AttributeError so it never surfaced in testing.

Merged, thanks @Pavulon87! Good catch — this dated back to an earlier fix of mine that introduced the `self._db` typo; the `try/except` around it silently swallowed the resulting AttributeError so it never surfaced in testing.
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: viewit/KX-Bridge-Release#93
No description provided.