Skip to content

Commit

Permalink
Fix InterruptedException references
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jun 14, 2015
1 parent c863743 commit 3362834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stomp/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def __read(self):
try:
try:
c = self.receive()
except InterruptedException:
except exception.InterruptedException:
log.debug("socket read interrupted, restarting")
continue
c = decode(c)
Expand Down Expand Up @@ -605,7 +605,7 @@ def receive(self):
_, e, _ = sys.exc_info()
if get_errno(e) in (errno.EAGAIN, errno.EINTR):
log.debug("socket read interrupted, restarting")
raise InterruptedException()
raise exception.InterruptedException()
raise


Expand Down

0 comments on commit 3362834

Please sign in to comment.