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. 5
      pyweb/mumble/MumbleCtlIce.py

5
pyweb/mumble/MumbleCtlIce.py

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

Loading…
Cancel
Save