Author: dmeyer
Date: Thu Oct 11 14:25:24 2007
New Revision: 2850

Log:
fix exception handling

Modified:
   trunk/beacon/src/__init__.py

Modified: trunk/beacon/src/__init__.py
==============================================================================
--- trunk/beacon/src/__init__.py        (original)
+++ trunk/beacon/src/__init__.py        Thu Oct 11 14:25:24 2007
@@ -87,7 +87,7 @@
         # It was possible to connect to the beacon server but not
         # to the thumbnailer. Something is very wrong.
         log.error('unable to connect to beacon-daemon %s', debugging)
-        raise RuntimeError('Unable to connect to beacon-daemon')
+        raise ConnectError('Unable to connect to beacon-daemon')
     signals = _client.signals
     log.info('beacon connected')
     return _client
@@ -108,7 +108,7 @@
         cmd += ' --autoshutdown'
     if os.system(cmd):
         log.error('unable to connect to beacon-daemon %s', debugging)
-        raise RuntimeError('Unable to connect to beacon-daemon')
+        raise ConnectError('Unable to connect to beacon-daemon')
     return connect()
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to