diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-12-14 18:28:26 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-12-14 18:28:26 +0200 |
| commit | 5c6bd686abf73b4d8deb2ce2646d0f47dbdb237d (patch) | |
| tree | 93faf023448ceffc2dc17988c58b7a51e69b395f /bin/report/render/__init__.py | |
| parent | 10c0a345e84963e0039e7da56438893a73a008f7 (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__.py | 5 |
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: |
