From f468fbb47d0d9199dc74c42229b9ec29a67b5139 Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Wed, 15 Oct 2014 10:34:27 -0700 Subject: [PATCH] Fix bad data in process command --- openlp/core/lib/projector/pjlink1.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openlp/core/lib/projector/pjlink1.py b/openlp/core/lib/projector/pjlink1.py index 1d29fc9b0..f773fb7dd 100644 --- a/openlp/core/lib/projector/pjlink1.py +++ b/openlp/core/lib/projector/pjlink1.py @@ -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: