From 5fffd09053e3c1b398a3e0c1c3ceab446ed36dda Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 10 Oct 2011 07:36:19 +0200 Subject: [PATCH] Ignore empty input lines rather than trying to find a barcode to match them --- client-barcode/freitagskasse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 3faa091..25c8155 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -322,7 +322,8 @@ def main(): if not l: break line = l.rstrip() - handle(line, status) + if line: + handle(line, status) if __name__ == '__main__':