From 78fef663b2a72a0785116ae0dd255cb58da9be92 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 19 Jul 2007 23:13:19 +0000 Subject: [PATCH] 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. --- controller/Updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/Updater.py b/controller/Updater.py index 1b4a8b5..51bfe84 100644 --- a/controller/Updater.py +++ b/controller/Updater.py @@ -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