andrewgodwin / south (http://south.aeracode.org/)

Migrations for Django

Clone this repository (size: 1.5 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/andrewgodwin/south/
commit 617: b52d5e1e4b21
parent 616: 23c06aac5416
branch: default
Another python 2.4 fix. I try, and try, and except for some issues, it'll finally be fixed.
Andrew Godwin / andrewgodwin
5 weeks ago

Changed (Δ33 bytes):

raw changeset »

south/migration/migrators.py (5 lines added, 4 lines removed)

Up to file-list south/migration/migrators.py:

@@ -249,10 +249,11 @@ class Forwards(Migrator):
249
249
        stdout = sys.stdout
250
250
        sys.stdout = StringIO()
251
251
        try:
252
            self.backwards(migration)()
253
            return sys.stdout.getvalue()
254
        except:
255
            raise
252
            try:
253
                self.backwards(migration)()
254
                return sys.stdout.getvalue()
255
            except:
256
                raise
256
257
        finally:
257
258
            db.debug, db.dry_run = old_debug, old_dry_run
258
259
            sys.stdout = stdout