From cffb25ac2b514ceaecd0f4bcf1a0240ae3694ebc Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 12 Feb 2010 11:20:52 +0100 Subject: [PATCH] only catch Ice exceptions --- pyweb/mumble/management/commands/checkenv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyweb/mumble/management/commands/checkenv.py b/pyweb/mumble/management/commands/checkenv.py index 22ca8b4..a7867b2 100644 --- a/pyweb/mumble/management/commands/checkenv.py +++ b/pyweb/mumble/management/commands/checkenv.py @@ -14,7 +14,7 @@ * GNU General Public License for more details. """ -import os +import os, Ice from django.core.management.base import BaseCommand from django.contrib.auth.models import User @@ -167,7 +167,7 @@ class Command( BaseCommand ): for mumble in mm: try: mumble.getCtl(); - except Exception, err: + except Ice.Exception, err: raise TestFailed( "Connecting to Murmur `%s` (%s) failed: %s" % ( mumble.name, mumble.dbus, err ) );