--- a/cubicweb/migration.py Wed May 22 14:23:01 2019 +0200
+++ b/cubicweb/migration.py Wed May 22 17:08:09 2019 +0200
@@ -32,7 +32,7 @@
from logilab.common.shellutils import ASK
from logilab.common.changelog import Version
-from cubicweb import ConfigurationError, ExecutionError
+from cubicweb import ConfigurationError, ExecutionError, utils
from cubicweb.cwconfig import CubicWebConfiguration as cwcfg
from cubicweb.toolsutils import show_diffs
@@ -228,7 +228,7 @@
self.interactive_shell()
return self.confirm(question, shell, abort, retry, pdb, default)
if answer == 'pdb':
- import pdb
+ pdb = utils.get_pdb()
pdb.set_trace()
return self.confirm(question, shell, abort, retry, pdb, default)
return True