Skip to content

Commit

Permalink
Catch exception for missing GH CLI (#56)
Browse files Browse the repository at this point in the history
* Update __init__.py

* bump isort version in pre-commit
  • Loading branch information
aguschin committed Mar 16, 2023
1 parent 6217a3b commit 41bcc87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
Expand Down
2 changes: 1 addition & 1 deletion src/iterative_telemetry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _generate_github_id():
["gh", "api", f"users/{actor}", "--jq", ".name, .login, .id"],
text=True,
)
except subprocess.SubprocessError:
except (subprocess.SubprocessError, FileNotFoundError):
return None
return group_id, user_id

Expand Down

0 comments on commit 41bcc87

Please sign in to comment.