Fix bad data in process command

This commit is contained in:
Ken Roberts 2014-10-15 10:34:27 -07:00
parent 650c5007b2
commit f468fbb47d

View File

@ -636,6 +636,11 @@ class PJLink1(QTcpSocket):
"""
Error status. See PJLink Specifications for format.
"""
try:
dontcare = int(data)
except ValueError:
# Bad data - ignore
return
if int(data) == 0:
self.projector_errors = None
else: