~vishvananda/nova/lp720393

Viewing all changes in revision 685.

  • Committer: Tarmac
  • Author(s): Brian Schott, Brian Schott
  • Date: 2011-02-16 21:29:52 UTC
  • mfrom: (662.2.2 lp-717467)
  • Revision ID: tarmac-20110216212952-auncj6l2fh44nlb7
-from migrate.versioning import exceptions as versioning_exceptions
+
+try:
+    from migrate.versioning import exceptions as versioning_exceptions
+except ImportError:
+    try:
+        # python-migration changed location of exceptions after 1.6.3
+        # See LP Bug #717467
+        from migrate import exceptions as versioning_exceptions
+    except ImportError:
+        sys.exit(_("python-migrate is not installed. Exiting."))

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: