Skip to content

Commit

Permalink
minor style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Apr 21, 2024
1 parent a55410f commit 9ef83fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ repos:
args: [-i]
exclude: .pre-commit-config.yaml # avoid false +ve

- id: style_1
name: check for 'as exc:' (should be 'as err:')
entry: ' as exc:'
language: pygrep
args: [-i]
exclude: .pre-commit-config.yaml # avoid false +ve

# - id: private imports
# name: check private imports
# entry: 'from .* import _.*'
Expand Down
4 changes: 2 additions & 2 deletions src/evohomeasync2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def main() -> None:
try:
cli(obj={}) # default for ctx.obj is None

except click.ClickException as exc:
print(f"Error: {exc}")
except click.ClickException as err:
print(f"Error: {err}")
sys.exit(-1)


Expand Down

0 comments on commit 9ef83fc

Please sign in to comment.