Skip to content

Commit 5b40c66

Browse files
committed
Fix AvroSerializer to_dict error messages
1 parent 761b45a commit 5b40c66

File tree

1 file changed

+2
-2
lines changed
  • confluent_kafka/schema_registry

1 file changed

+2
-2
lines changed

confluent_kafka/schema_registry/avro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(self, schema_str, schema_registry_client,
148148

149149
if to_dict is not None and not callable(to_dict):
150150
raise ValueError("to_dict must be callable with the signature"
151-
" to_dict(SerializationContext, object)->dict")
151+
" to_dict(object, SerializationContext)->dict")
152152

153153
self._to_dict = to_dict
154154

@@ -167,7 +167,7 @@ def __init__(self, schema_str, schema_registry_client,
167167

168168
if len(conf_copy) > 0:
169169
raise ValueError("Unrecognized properties: {}"
170-
.format(", ".format(conf_copy.keys())))
170+
.format(", ".join(conf_copy.keys())))
171171

172172
# convert schema_str to Schema instance
173173
schema = _schema_loads(schema_str)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy