Created
January 8, 2013 04:44
-
-
Save hobodave/4481226 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Stomp(object): | |
def __init__(self): | |
self._transport = None | |
def connect(self): | |
try: # preserve existing connection | |
self._transport | |
except StompConnectionError: | |
pass | |
else: | |
raise StompConnectionError('Already connected to %s' % self._transport) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment