Skip to content

Commit

Permalink
Raise klipper error not native python error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbtoonz committed Dec 21, 2024
1 parent f85f135 commit c2a5f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ def _is_faulty_coordinate(self, x, y, add_offsets=False):
def _check_hardware(self, sample):
# Validate sample input
if "data" not in sample or "freq" not in sample:
raise ValueError("Sample must contain 'data' and 'freq' keys.")
raise self._mcu.error("Sample must contain 'data' and 'freq' keys.")

Check failure on line 1724 in scanner.py

View workflow job for this annotation

GitHub Actions / Standard Checks

Cannot access attribute "error" for class "MCU"   Attribute "error" is unknown (reportAttributeAccessIssue)

Check failure on line 1724 in scanner.py

View workflow job for this annotation

GitHub Actions / K1 Checks

Cannot access attribute "error" for class "MCU"   Attribute "error" is unknown (reportAttributeAccessIssue)

# Initialize variables on the first call
if not hasattr(self, "freq_window"):
Expand Down

0 comments on commit c2a5f38

Please sign in to comment.