Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'lower' #11

Open
erdoukki opened this issue Aug 4, 2014 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'lower' #11

erdoukki opened this issue Aug 4, 2014 · 0 comments

Comments

@erdoukki
Copy link

erdoukki commented Aug 4, 2014

diff --git a/pylms/server.py b/pylms/server.py
index 3fe1a3e..e20583e 100644
--- a/pylms/server.py
+++ b/pylms/server.py
@@ -171,8 +171,8 @@ class Server(object):
         """
         if isinstance(ref, str):
             ref = self.__decode(ref)
-        ref = ref.lower()
         if ref:
+            ref = ref.lower()
             for player in self.players:
                 player_name = player.name.lower()
                 player_ref = player.ref.lower()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant