From 27b393d45cfd988f4f40ffd6bef41cd20bcc0a5f Mon Sep 17 00:00:00 2001 From: Manuel F Martinez Date: Sun, 23 Feb 2014 21:10:34 -0800 Subject: [PATCH] Added exception for PIL import --- escpos/escpos.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 91d71fc..d689a16 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -6,7 +6,11 @@ @license: GPL ''' -import Image +try: + import Image +except ImportError: + from PIL import Image + import qrcode import time