`last_err = None` was at module-level indentation (4 spaces) instead of method-body indentation (8 spaces), causing an IndentationError on import. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>