Skip to content

Commit 8e45870

Browse files
pi314xxeroc
authored andcommitted
Update objects.py
1 parent eac2ad4 commit 8e45870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitsharesbase/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def __init__(self, *args, **kwargs):
454454
elif id == 2:
455455
data = Block_id_predicate(o[1])
456456
else:
457-
raise ValueError("Unknown {}".format(self.__class__.name))
457+
raise ValueError("Unknown {}".format(self.__class__.__name__))
458458
super().__init__(data, id)
459459

460460

@@ -480,5 +480,5 @@ def __init__(self, *args, **kwargs):
480480
if id == 0:
481481
data = Create_take_profit_order_action(o[1])
482482
else:
483-
raise ValueError("Unknown {}".format(self.__class__.name))
483+
raise ValueError("Unknown {}".format(self.__class__.__name__))
484484
super().__init__(data, id)

0 commit comments

Comments
 (0)