david / semanticdjango (http://semanticdjango.org/)
fork of django-trunk
The right time for a semantic contrib, that's my pony.
Clone this repository (size: 23.1 MB): HTTPS / SSH
$ hg clone http://code.welldev.org/semanticdjango
| commit 6480: | 2876cdfcf6fc |
| parent 6479: | 6709d11a3cb1 |
| branch: | default |
Fixed #8055: Replaced use of traceback.format_exc (new in Python 2.4) with something that works as far back as 2.3.
Thanks to Ramiro for diagnosis and patch.
19 months ago
Changed (Δ59 bytes):
raw changeset »
django/core/management/commands/loaddata.py (2 lines added, 2 lines removed)
Up to file-list django/core/management/commands/loaddata.py:
| … | … | @@ -161,12 +161,12 @@ class Command(BaseCommand): |
161 |
161 |
transaction.rollback() |
162 |
162 |
transaction.leave_transaction_management() |
163 |
163 |
if show_traceback: |
164 |
import traceback |
|
165 |
164 |
traceback.print_exc() |
166 |
165 |
else: |
167 |
166 |
sys.stderr.write( |
168 |
167 |
self.style.ERROR("Problem installing fixture '%s': %s\n" % |
169 |
(full_path, |
|
168 |
(full_path, ''.join(traceback.format_exception(sys.exc_type, |
|
169 |
sys.exc_value, sys.exc_traceback))))) |
|
170 |
170 |
return |
171 |
171 |
fixture.close() |
172 |
172 |
