Browse Source

mac2id() supports None as parameter

Helge Jung 9 years ago
parent
commit
d56e461735
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ffstatus/__init__.py

+ 2 - 0
ffstatus/__init__.py

@@ -28,6 +28,8 @@ logger = logging.getLogger('ffstatus')
 
 
 def mac2id(mac):
+    if mac is None:
+        return None
     return mac.lower().replace(':', '')