summaryrefslogtreecommitdiff
path: root/kombu/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'kombu/connection.py')
-rw-r--r--kombu/connection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kombu/connection.py b/kombu/connection.py
index 291d680a..1d70988a 100644
--- a/kombu/connection.py
+++ b/kombu/connection.py
@@ -495,9 +495,9 @@ class Connection(object):
create_channel = self.channel
class Revival(object):
- __name__ = fun.__name__
- __module__ = fun.__module__
- __doc__ = fun.__doc__
+ __name__ = getattr(fun, '__name__', None)
+ __module__ = getattr(fun, '__module__', None)
+ __doc__ = getattr(fun, '__doc__', None)
def revive(self, channel):
channels[0] = channel