witten
/
luminotes
Archived
1
0
Fork 0

Now, if an exception is raised within a function decorated with

@update_client, it get propagated to the client in the form of a
not-very-helpful generic error message.
This commit is contained in:
Dan Helfman 2007-07-19 23:13:19 +00:00
parent ed594fd798
commit 78fef663b2
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def wait_for_update( function ):
try:
return queue.get( block = True, timeout = TIMEOUT_SECONDS )
except Empty:
return { "error": u"A timeout occurred when processing your request. Please try again." }
return { "error": u"A timeout occurred when processing your request. Please try again or contact support@luminotes.com" }
return get_message
@ -65,6 +65,7 @@ def update_client( function ):
result = error.to_dict()
queue.put( result )
else:
queue.put( { "error": u"An error occurred when processing your request. Please try again or contact support@luminotes.com" } )
raise
return put_message