From 6dc447284e4d1323e5cbf8da797c80ded7ce590c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 11 Oct 2012 10:35:50 -0700 Subject: [PATCH] catch any exception when printing a label --- rattail/pyramid/views/products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rattail/pyramid/views/products.py b/rattail/pyramid/views/products.py index 30501fb5..57169801 100644 --- a/rattail/pyramid/views/products.py +++ b/rattail/pyramid/views/products.py @@ -210,7 +210,7 @@ def print_labels(request): try: printer.print_labels([(product, quantity)]) - except LabelPrintingError, error: + except Exception, error: return {'error': str(error)} return {}