Browse Source

fix hasUserTexture to not try getting the texture for anonymous users

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
4152896163
  1. 2
      pyweb/mumble/models.py

2
pyweb/mumble/models.py

@ -571,6 +571,8 @@ class Mumble( models.Model ):
def hasUserTexture( self, userid ):
""" Check if this user has a texture set. """
if userid == -1:
return False
try:
self.getUserTexture( userid )
except ValueError:

Loading…
Cancel
Save