Browse Source

add common slice error checks to the control object factory.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
a819e30b1e
  1. 6
      pyweb/mumble/MumbleCtlIce.py

6
pyweb/mumble/MumbleCtlIce.py

@ -61,6 +61,12 @@ def MumbleCtlIce( connstring ):
if not exists( settings.SLICE ): if not exists( settings.SLICE ):
raise EnvironmentError( "The slice file does not exist: '%s' - please check the settings." % settings.SLICE ) raise EnvironmentError( "The slice file does not exist: '%s' - please check the settings." % settings.SLICE )
if " " in settings.SLICE:
raise EnvironmentError( "You have a space char in your Slice path. This will confuse Ice, please check." )
if not settings.SLICE.endswith( ".ice" ):
raise EnvironmentError( "The slice file name MUST end with '.ice'." )
Ice.loadSlice( settings.SLICE ) Ice.loadSlice( settings.SLICE )
ice = Ice.initialize() ice = Ice.initialize()

Loading…
Cancel
Save