catch any exception when printing a label

This commit is contained in:
Lance Edgar 2012-10-11 10:35:50 -07:00
parent 7fe4be4527
commit 6dc447284e

View file

@ -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 {}