Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 22, 2024
1 parent eabb9ac commit 295e458
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/gen_doc_stubs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generate documentation stubs."""

from pathlib import Path
from typing import Set

Expand Down
1 change: 1 addition & 0 deletions psmq/message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Messages for PSMQ."""

from dataclasses import dataclass, field
from datetime import datetime, timedelta
from typing import Any, Optional
Expand Down
4 changes: 2 additions & 2 deletions psmq/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def serialize(self, message: Any) -> bytes:
"""
try:
return self.serializer(message)
except Exception as e: # NOQA: BLE001
except Exception as e:
# TODO: This might be a place to provide a hook or configuration for error handling
raise UnserializableMessage(message, self.serializer.__name__) from e

Expand All @@ -144,7 +144,7 @@ def deserialize(self, message: bytes) -> Any:
"""
try:
return self.deserializer(message)
except Exception as e: # NOQA: BLE001
except Exception as e:
# TODO: This might be a place to provide a hook or configuration for error handling
raise UndeserializableMessage(message, self.deserializer.__name__) from e

Expand Down
1 change: 1 addition & 0 deletions psmq/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for the psmq package."""

from itertools import islice
from typing import Any, Iterable, Tuple

Expand Down

0 comments on commit 295e458

Please sign in to comment.