Skip to content

Commit c7d8e29

Browse files
fix python syntax warning
1 parent 8266140 commit c7d8e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from utils.funs import *
33

44
######## VNC
5-
if os.popen("hostname -I | cut -d \" \" -f 2 | tr -d '\\n'").read() is '':
5+
if not os.popen("hostname -I | cut -d \" \" -f 2 | tr -d '\\n'").read().strip():
66
# hostname returs \n which can effect logic
77
IPv4Address = os.popen("hostname -I | tr -d '\\n'").read().strip()
88
else:

0 commit comments

Comments
 (0)