Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3b3ebb

Browse files
committed
Guess better the name of a service.
1 parent 850e330 commit e3b3ebb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zerorpc/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def _filter_methods(cls, self, methods):
8181

8282
@staticmethod
8383
def _extract_name(methods):
84-
return getattr(type(methods), '__name__', None) or repr(methods)
84+
return getattr(methods, '__name__', None) \
85+
or getattr(type(methods), '__name__', None) \
86+
or repr(methods)
8587

8688
def close(self):
8789
self.stop()

0 commit comments

Comments
 (0)