|
|
@ -14,7 +14,7 @@ |
|
|
|
* GNU General Public License for more details. |
|
|
|
""" |
|
|
|
|
|
|
|
import os, Ice |
|
|
|
import os |
|
|
|
|
|
|
|
from django.core.management.base import BaseCommand |
|
|
|
from django.contrib.auth.models import User |
|
|
@ -29,7 +29,13 @@ class TestFailed( Exception ): |
|
|
|
|
|
|
|
class Command( BaseCommand ): |
|
|
|
def handle(self, **options): |
|
|
|
try: |
|
|
|
import Ice |
|
|
|
except ImportError: |
|
|
|
pass |
|
|
|
else: |
|
|
|
self.check_slice(); |
|
|
|
|
|
|
|
self.check_rootdir(); |
|
|
|
self.check_dbase(); |
|
|
|
self.check_sites(); |
|
|
@ -167,7 +173,7 @@ class Command( BaseCommand ): |
|
|
|
for mumble in mm: |
|
|
|
try: |
|
|
|
mumble.ctl |
|
|
|
except Ice.Exception, err: |
|
|
|
except Exception, err: |
|
|
|
raise TestFailed( |
|
|
|
"Connecting to Murmur `%s` (%s) failed: %s" % ( mumble.name, mumble.server, err ) |
|
|
|
); |
|
|
|