Browse Source

only catch Ice exceptions

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
cffb25ac2b
  1. 4
      pyweb/mumble/management/commands/checkenv.py

4
pyweb/mumble/management/commands/checkenv.py

@ -14,7 +14,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
""" """
import os
import os, Ice
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from django.contrib.auth.models import User from django.contrib.auth.models import User
@ -167,7 +167,7 @@ class Command( BaseCommand ):
for mumble in mm: for mumble in mm:
try: try:
mumble.getCtl(); mumble.getCtl();
except Exception, err:
except Ice.Exception, err:
raise TestFailed( raise TestFailed(
"Connecting to Murmur `%s` (%s) failed: %s" % ( mumble.name, mumble.dbus, err ) "Connecting to Murmur `%s` (%s) failed: %s" % ( mumble.name, mumble.dbus, err )
); );

Loading…
Cancel
Save