Skip to content

Commit 15be9f9

Browse files
[pre-commit.ci] pre-commit autoupdate (#341)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e15dfc9 commit 15be9f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
hooks:
4141
- id: black
4242
- repo: https://github.com/charliermarsh/ruff-pre-commit
43-
rev: v0.0.228
43+
rev: v0.0.230
4444
hooks:
4545
- id: ruff
4646
- repo: https://github.com/dosisod/refurb

src/_pytask/warnings_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _resolve_warning_category(category: str) -> type[Warning]:
122122
m = __import__(module, None, None, [klass])
123123
cat = getattr(m, klass)
124124
if not issubclass(cat, Warning):
125-
raise Exception(f"{cat} is not a Warning subclass")
125+
raise TypeError(f"{cat} is not a Warning subclass")
126126
return cast(type[Warning], cat)
127127

128128

0 commit comments

Comments
 (0)