Browse Source

fix crash when PIL doesn't recognize the image format

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

3
pyweb/mumble/MumbleCtlIce.py

@ -543,7 +543,10 @@ class MumbleCtlIce_123(MumbleCtlIce_120):
if len(texture) == 0: if len(texture) == 0:
raise ValueError( "No Texture has been set." ); raise ValueError( "No Texture has been set." );
from StringIO import StringIO from StringIO import StringIO
try:
return Image.open( StringIO( texture ) ) return Image.open( StringIO( texture ) )
except IOError, err:
raise ValueError( err )
@protectDjangoErrPage @protectDjangoErrPage
def setTexture(self, srvid, mumbleid, infile): def setTexture(self, srvid, mumbleid, infile):

Loading…
Cancel
Save