Skip to content

Commit

Permalink
testing hookserver
Browse files Browse the repository at this point in the history
  • Loading branch information
prehensile committed Jul 6, 2012
1 parent 79d1c56 commit 0b98d84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion skypebot.py
Expand Up @@ -217,7 +217,13 @@ def run( self ):
if ENABLE_API:
api_message = self.api_server.pop_message()
if api_message is not None:
logging.info( api_message.payload["message"] )
message_out = None
try:
message_out = api_message.payload["message"]
except Exception, e:
logging.info( e )
if message_out is not None:
self.message_all( message_out )

time.sleep(1)
except Exception, e:
Expand Down
1 change: 1 addition & 0 deletions test.json
@@ -0,0 +1 @@
payload={"message":"test"}

0 comments on commit 0b98d84

Please sign in to comment.