summaryrefslogtreecommitdiff
path: root/bin/report/render/__init__.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-12-14 18:28:26 +0200
committerP. Christeas <p_christ@hol.gr>2010-12-14 18:28:26 +0200
commit5c6bd686abf73b4d8deb2ce2646d0f47dbdb237d (patch)
tree93faf023448ceffc2dc17988c58b7a51e69b395f /bin/report/render/__init__.py
parent10c0a345e84963e0039e7da56438893a73a008f7 (diff)
reports: fix some default args, import message, empty translations
bzr revid: p_christ@hol.gr-20101214162826-79ppx7qw23ag3qx0
Diffstat (limited to 'bin/report/render/__init__.py')
-rw-r--r--bin/report/render/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/report/render/__init__.py b/bin/report/render/__init__.py
index 1a888e18b75..1d0a4464e0b 100644
--- a/bin/report/render/__init__.py
+++ b/bin/report/render/__init__.py
@@ -25,8 +25,9 @@ from render import render
try:
import Image
-except:
- print 'WARNING; Python Imaging not installed, you can use only .JPG pictures !'
+except ImportError:
+ import logging
+ logging.getLogger('init').warning('Python Imaging not installed, you can use only .JPG pictures !')
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: