Skip to content

Commit

Permalink
Address issue #419
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Feb 17, 2014
1 parent ca3cb59 commit 470c245
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pika/exceptions.py
Expand Up @@ -58,7 +58,7 @@ def __repr__(self):
self.args[1])
else:
return 'The AMQP connection was closed'


class AMQPChannelError(AMQPError):
def __repr__(self):
Expand All @@ -67,8 +67,11 @@ def __repr__(self):

class ChannelClosed(AMQPChannelError):
def __repr__(self):
return 'The channel was remotely closed (%s) %s' % (self.args[0],
self.args[1])
if len(self.args) == 2:
return 'The channel was remotely closed (%s) %s' % (self.args[0],
self.args[1])
else:
return 'The channel was remotely closed'


class DuplicateConsumerTag(AMQPChannelError):
Expand Down

0 comments on commit 470c245

Please sign in to comment.