diff --git a/pyweb/mumble/MumbleCtlIce.py b/pyweb/mumble/MumbleCtlIce.py index 53c3be8..c6f9c6e 100644 --- a/pyweb/mumble/MumbleCtlIce.py +++ b/pyweb/mumble/MumbleCtlIce.py @@ -16,7 +16,7 @@ """ 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 struct import pack, unpack from zlib import compress, decompress @@ -114,7 +114,7 @@ def MumbleCtlIce( connstring, slicefile=None, icesecret=None ): except RuntimeError: raise RuntimeError( "Slice preprocessing failed. Please check your server's error log." ) finally: - os.unlink(temppath) + unlink(temppath) else: slicetemp = tempfile.NamedTemporaryFile( suffix='.ice' ) try: