We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684c7df commit 19581bfCopy full SHA for 19581bf
lib/analytics.py
@@ -9,18 +9,27 @@ def __init__(self):
9
10
@staticmethod
11
def finding_address():
12
- val = get_mac()
13
- return val
+ try:
+ val = get_mac()
14
+ return val
15
+
16
+ except Exception as e :
17
+ return None
18
19
20
def finding_ip():
- val = socket.gethostbyname(socket.gethostname())
21
22
+ val = socket.gethostbyname(socket.gethostname())
23
24
+ except Exception as e:
25
26
27
28
def finding_system():
- return platform.system()
-
29
30
+ return platform.system()
31
32
33
def __setitem__(self, key, val):
34
self.dict[key] = val
35
0 commit comments