|
@ -16,7 +16,7 @@ |
|
|
""" |
|
|
""" |
|
|
|
|
|
|
|
|
from os.path import exists, join |
|
|
from os.path import exists, join |
|
|
from os import name as os_name |
|
|
|
|
|
|
|
|
from os import unlink, name as os_name |
|
|
from PIL import Image |
|
|
from PIL import Image |
|
|
from struct import pack, unpack |
|
|
from struct import pack, unpack |
|
|
from zlib import compress, decompress |
|
|
from zlib import compress, decompress |
|
@ -114,7 +114,7 @@ def MumbleCtlIce( connstring, slicefile=None, icesecret=None ): |
|
|
except RuntimeError: |
|
|
except RuntimeError: |
|
|
raise RuntimeError( "Slice preprocessing failed. Please check your server's error log." ) |
|
|
raise RuntimeError( "Slice preprocessing failed. Please check your server's error log." ) |
|
|
finally: |
|
|
finally: |
|
|
os.unlink(temppath) |
|
|
|
|
|
|
|
|
unlink(temppath) |
|
|
else: |
|
|
else: |
|
|
slicetemp = tempfile.NamedTemporaryFile( suffix='.ice' ) |
|
|
slicetemp = tempfile.NamedTemporaryFile( suffix='.ice' ) |
|
|
try: |
|
|
try: |
|
|