Changeset 122:df824ebd5734 for relatorio/templates/__init__.py
- Timestamp:
- 03/24/09 10:02:34 (16 months ago)
- Branch:
- default
- Files:
-
- 1 modified
-
relatorio/templates/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
relatorio/templates/__init__.py
r80 r122 11 11 # This program is distributed in the hope that it will be useful, but WITHOUT 12 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 13 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 14 # details. 15 15 # … … 19 19 ############################################################################### 20 20 21 import traceback 21 22 import warnings 22 23 … … 26 27 try: 27 28 __import__('relatorio.templates.%s' % name) 28 except :29 except Exception, e: 29 30 warnings.warn("Unable to load plugin '%s', you will not be able " 30 31 "to use it" % name) 32 print 'Original traceback' 33 print '-' * 80 34 print 35 traceback.print_exc()
