Skip to content

Commit 77ff7ed

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a2b399b commit 77ff7ed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cloudevents/v1/kafka/conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def from_structured(
228228
structure = envelope_unmarshaller(message.value)
229229
except Exception as e:
230230
raise cloud_exceptions.DataUnmarshallerError(
231-
"Failed to unmarshall message with error: " f"{type(e).__name__}('{e}')"
231+
f"Failed to unmarshall message with error: {type(e).__name__}('{e}')"
232232
)
233233

234234
attributes: typing.Dict[str, typing.Any] = {}
@@ -247,7 +247,7 @@ def from_structured(
247247
decoded_value = value
248248
except Exception as e:
249249
raise cloud_exceptions.DataUnmarshallerError(
250-
"Failed to unmarshall data with error: " f"{type(e).__name__}('{e}')"
250+
f"Failed to unmarshall data with error: {type(e).__name__}('{e}')"
251251
)
252252
if name == "data":
253253
data = decoded_value

src/cloudevents/v1/sdk/event/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ def UnmarshalJSON(
245245
decoded_value = value
246246
except Exception as e:
247247
raise cloud_exceptions.DataUnmarshallerError(
248-
"Failed to unmarshall data with error: "
249-
f"{type(e).__name__}('{e}')"
248+
f"Failed to unmarshall data with error: {type(e).__name__}('{e}')"
250249
)
251250
self.Set(name, decoded_value)
252251

src/cloudevents/v1/sdk/exceptions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__(self, converter_type):
3636
class UnsupportedEventConverter(Exception):
3737
def __init__(self, content_type):
3838
super().__init__(
39-
"Unable to identify valid event converter "
40-
"for content-type: '{0}'".format(content_type)
39+
"Unable to identify valid event converter for content-type: '{0}'".format(
40+
content_type
41+
)
4142
)

0 commit comments

Comments
 (0)