vtcode 0.123.7

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
id: no-bare-except
language: python
severity: warning
message: Avoid bare `except:` clauses; catch specific exceptions.
note: |
  Bare `except:` catches all exceptions including `SystemExit`,
  `KeyboardInterrupt`, and `GeneratorExit`, making it hard to interrupt
  programs and hiding bugs. Catch specific exceptions like
  `except ValueError:` or use `except Exception:` as a last resort.
rule:
  kind: except_clause
  pattern: "except:"
files:
  - "**/*.py"
  - "!**/examples/**"