mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed exception breakpoints.
This commit is contained in:
@@ -146,8 +146,8 @@ def restore_pm_excepthook():
|
||||
|
||||
|
||||
def update_exception_hook(dbg):
|
||||
if len(dbg.exception_set) >0:
|
||||
set_pm_excepthook(tuple(dbg.exception_set))
|
||||
if dbg.exception_set:
|
||||
set_pm_excepthook(dict(dbg.exception_set))
|
||||
else:
|
||||
restore_pm_excepthook()
|
||||
|
||||
|
||||
@@ -775,10 +775,13 @@ class InternalGetCompletions(InternalThreadCommand):
|
||||
try:
|
||||
import console._completer
|
||||
except:
|
||||
path = os.environ['PYDEV_COMPLETER_PYTHONPATH']
|
||||
sys.path.append(path)
|
||||
remove_path = path
|
||||
import console._completer
|
||||
try:
|
||||
path = os.environ['PYDEV_COMPLETER_PYTHONPATH']
|
||||
sys.path.append(path)
|
||||
remove_path = path
|
||||
import console._completer
|
||||
except :
|
||||
traceback.print_exc()
|
||||
|
||||
try:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user