diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-06-16 13:39:03 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-06-16 13:39:03 -0400 |
commit | 01b5e5fa08c646d3d1f65c731136a1a6a9255315 (patch) | |
tree | 42847808837754253953dbbe6382cb06966faeca /alembic/util | |
parent | c97d5b3dd6fde31acb8e9e0c67d0ebc54fa0d809 (diff) | |
download | alembic-01b5e5fa08c646d3d1f65c731136a1a6a9255315.tar.gz |
repair py2k support
the editor patch had some py3 isms as a result of us disabling
the python 2 tests in gerrit. need to move forward w/ the py3k
or re-enable py2k
Change-Id: If47b0ebc105131fd3e7b8e6d76e0555da1484b8c
Diffstat (limited to 'alembic/util')
-rw-r--r-- | alembic/util/editor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alembic/util/editor.py b/alembic/util/editor.py index c27f0f3..5104148 100644 --- a/alembic/util/editor.py +++ b/alembic/util/editor.py @@ -5,6 +5,7 @@ from os.path import splitext from subprocess import check_call from .compat import is_posix +from .compat import raise_ from .exc import CommandError @@ -27,7 +28,7 @@ def open_in_editor(filename, environ=None): editor = _find_editor(environ) check_call([editor, filename]) except Exception as exc: - raise CommandError("Error executing editor (%s)" % (exc,)) from exc + raise_(CommandError("Error executing editor (%s)" % (exc,)), from_=exc) def _find_editor(environ=None): |