Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Spools not available when Klipper api error #177

Open
Disane87 opened this issue Jan 13, 2025 · 1 comment
Open

Spools not available when Klipper api error #177

Disane87 opened this issue Jan 13, 2025 · 1 comment
Assignees
Labels
bug Something isn't working released on @dev

Comments

@Disane87
Copy link
Owner

I saw this issue too as I started using this last night.

I edited coordinator.py to have the klipper check inside it's own try/except:

            try:
                klipper_url = config.get(KLIPPER_URL, "")
                if klipper_url is not None and klipper_url != "":
                    klipper_active_spool: int | None = await KlipperAPI(klipper_url).get_active_spool_id()
                    if klipper_active_spool is not None:
                        for spool in spools:
                            if spool["id"] == klipper_active_spool:
                                spool["klipper_active_spool"] = True
                            else:
                                spool["klipper_active_spool"] = False
            except Exception as exception:
                print("klipper api error")

Originally posted by @floyduww in #135 (comment)

github-actions bot pushed a commit that referenced this issue Jan 13, 2025
## [0.7.0-dev.3](v0.7.0-dev.2...v0.7.0-dev.3) (2025-01-13)

### 🛠️ Fixes

* improve error handling in SpoolManCoordinator for API calls ([efeebea](efeebea)), closes [#177](#177)
@Disane87
Copy link
Owner Author

🎉 This issue has been resolved in version 0.7.0-dev.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Disane87 Disane87 self-assigned this Jan 13, 2025
@Disane87 Disane87 added the bug Something isn't working label Jan 13, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working released on @dev
Projects
None yet
Development

No branches or pull requests

1 participant