summaryrefslogtreecommitdiff
path: root/alembic/util
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-06-16 13:39:03 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-06-16 13:39:03 -0400
commit01b5e5fa08c646d3d1f65c731136a1a6a9255315 (patch)
tree42847808837754253953dbbe6382cb06966faeca /alembic/util
parentc97d5b3dd6fde31acb8e9e0c67d0ebc54fa0d809 (diff)
downloadalembic-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.py3
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):