Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions DreamScreenComander.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def calcCRC8(resp):
#do we need to ping the IP as well? Probably not...maybe we can ask a set of questions for setup?
setIP(ip)
else:
print "This has an error in your IP's length"
print("This has an error in your IP's length")
except:
print "This has an error in your IP"
print("This has an error in your IP")
if options.mode:
try:
options.mode = int(options.mode) #options come in as strings, must cast as int
Expand All @@ -171,7 +171,7 @@ def calcCRC8(resp):
options.mode = 0
setMode(options.mode)
except:
print "error: mode not a number"
print("error: mode not a number")
sys.exit(0)

if options.source:
Expand All @@ -183,7 +183,7 @@ def calcCRC8(resp):
options.source = 0
setSource(options.source)
except:
print "error: source not a number"
print("error: source not a number")
sys.exit(0)

if options.scene:
Expand All @@ -195,7 +195,7 @@ def calcCRC8(resp):
options.scene = 0
setScene(options.scene)
except:
print "error: source not a number"
print("error: source not a number")
sys.exit(0)

if options.brightness:
Expand All @@ -207,9 +207,9 @@ def calcCRC8(resp):
options.brightness = 0
setBrightness(options.brightness)
except:
print "error: source not a number"
print("error: source not a number")
sys.exit(0)

if (options.mode is None) and (options.source is None) and (options.scene is None) and (options.ip is None) and (options.brightness is None):
print "error: no options were selected"
print("error: no options were selected")
sys.exit(0)