From 41528961635f22f9983424416cbdc555d94a4a48 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sun, 22 Aug 2010 01:07:45 +0200 Subject: [PATCH] fix hasUserTexture to not try getting the texture for anonymous users --- pyweb/mumble/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index c1d1e74..12a200b 100644 --- a/pyweb/mumble/models.py +++ b/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: