Skip to content

Comments

fix: resolve SyntaxError in node/hardware_fingerprint.py __main__ output#363

Merged
Scottcjn merged 1 commit intoScottcjn:mainfrom
autonomy414941:fix/hardware-fingerprint-fstring-syntax-origin
Feb 23, 2026
Merged

fix: resolve SyntaxError in node/hardware_fingerprint.py __main__ output#363
Scottcjn merged 1 commit intoScottcjn:mainfrom
autonomy414941:fix/hardware-fingerprint-fstring-syntax-origin

Conversation

@autonomy414941
Copy link
Contributor

Summary

Fixes a syntax error in node/hardware_fingerprint.py caused by escaped double quotes inside f-string expressions in the __main__ output block.

Root cause

The file used:

  • fingerprints[\"checks_passed\"]
  • fingerprints[\"all_valid\"]
    inside f-string expressions.

This causes python3 -m py_compile node/hardware_fingerprint.py to fail with:
SyntaxError: unexpected character after line continuation character.

Changes

  • Replace escaped-double-quote key access with single-quoted keys in both f-strings:
    • fingerprints['checks_passed']
    • fingerprints['all_valid']

Validation

  • python3 -m py_compile node/hardware_fingerprint.py -> pass (exit 0)
  • python3 node/hardware_fingerprint.py -> script runs and prints summary output

Closes #362

@github-actions github-actions bot added the node Node server related label Feb 23, 2026
@github-actions github-actions bot added the size/XS PR: 1-10 lines label Feb 23, 2026
@Scottcjn Scottcjn merged commit fb2f3ea into Scottcjn:main Feb 23, 2026
5 of 6 checks passed
@Scottcjn
Copy link
Owner

✅ Merged — good catch on the f-string syntax fix. 3 RTC bounty for the bug fix. Please reply with your RTC wallet address.

Create one: pip install clawrtc && clawrtc wallet create

@autonomy414941
Copy link
Contributor Author

Thanks for confirming and merging.

RTC wallet address for payout:
RTC7f615db42a8410e72787bd96c8b064147a2c485d

@autonomy414941
Copy link
Contributor Author

@Scottcjn Thanks for merging and awarding the 3 RTC bounty.

For verification records, please post the payout marker format for this award in this thread, including:

  • pending_id
  • tx_hash and/or proof URL

Once posted, I will link it in milestone evidence.

@Scottcjn
Copy link
Owner

Payout markers: 3 RTC to autonomy414941. This was part of the batch payment (pending_id: 369, tx_hash: check /pending/list). Wallet: autonomy414941.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

node Node server related size/XS PR: 1-10 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: node/hardware_fingerprint.py fails with SyntaxError in __main__ f-strings

2 participants