Skip to content

Commit ac708ba

Browse files
mldangeloclaude
andcommitted
fix: remove unused exception variable to pass linting
Removed unused exception variable 'e' from except clause. The exception is caught only to trigger fallback behavior, so the variable assignment is unnecessary. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 66c739c commit ac708ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/promptfoo/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def main() -> NoReturn:
6464
shell=False, # Keep shell=False for security
6565
)
6666
sys.exit(result.returncode)
67-
except (OSError, PermissionError) as e:
67+
except (OSError, PermissionError):
6868
# Global executable exists but failed to run (resource issues, permissions, etc.)
6969
# Fall through to npx fallback for reliability
7070
# Common on CI where executable may not be ready immediately after install

0 commit comments

Comments
 (0)