Browse Source

fix hasUserTexture to not try getting the texture for anonymous users

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 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 ): def hasUserTexture( self, userid ):
""" Check if this user has a texture set. """ """ Check if this user has a texture set. """
if userid == -1:
return False
try: try:
self.getUserTexture( userid ) self.getUserTexture( userid )
except ValueError: except ValueError:

Loading…
Cancel
Save