Skip to content

Commit 5de877c

Browse files
committed
Removed deprecated usage of e.message
1 parent 0e31424 commit 5de877c

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

beaver/rabbitmq_transport.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ def callback(self, filename, lines):
7272
try:
7373
raise TransportException(e.strerror)
7474
except AttributeError:
75-
try:
76-
raise TransportException(e.message)
77-
except AttributeError:
78-
raise TransportException("Unspecified exception encountered") # TRAP ALL THE THINGS!
75+
raise TransportException("Unspecified exception encountered") # TRAP ALL THE THINGS!
7976

8077
def interrupt(self):
8178
if self.connection:

bin/beaver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ while 1:
9191
if failure_count > max_failure:
9292
failure_count = max_failure
9393
sleep_time = respawn_delay ** failure_count
94-
logger.info("Caught transport exception ('%s'), respawning in %d seconds" % (e.message, sleep_time))
94+
logger.info("Caught transport exception, respawning in %d seconds" % sleep_time)
9595
try:
9696
sleep(sleep_time)
9797
except KeyboardInterrupt:

0 commit comments

Comments
 (0)