Fix AttributeError in checktype
This commit is contained in:
parent
96fa4f54b3
commit
cbfbab2923
|
@ -24,7 +24,7 @@ def checktype(type):
|
|||
@wraps(func)
|
||||
def wrapper(key, *args, **kwargs):
|
||||
if key.type != type:
|
||||
raise TypeError(f'Cannot use method "{func.name}" on Signer of type "{key.type}"')
|
||||
raise TypeError(f'Cannot use method "{func.__name__}" on Signer of type "{key.type}"')
|
||||
|
||||
return func(key, *args, **kwargs)
|
||||
return wrapper
|
||||
|
|
Loading…
Reference in a new issue