Skip to content

Commit b8dfd81

Browse files
committed
Issue apache#31 - Access name attribute of any type object
1 parent cbd31e7 commit b8dfd81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulsar/schema/definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
def _check_record_or_field(x):
2727
if (type(x) is type and not issubclass(x, Record)) \
2828
and not isinstance(x, Field):
29-
raise Exception('Argument ' + x + ' is not a Record or a Field')
29+
raise Exception('Argument ' + x.__name__ + ' is not a Record or a Field')
3030

3131

3232
class RecordMeta(type):

0 commit comments

Comments
 (0)