From 3d6b55255bc7beb907f6357dfe855386fb61fe65 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Fri, 5 Sep 2014 01:04:34 +0200 Subject: [PATCH] Handle absent options of exception breaks. --- python/helpers/pydev/pydevd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index 2b9b4ee94a1c..de9231f2f293 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -1038,7 +1038,11 @@ class PyDB: pass elif cmd_id == CMD_ADD_EXCEPTION_BREAK: - exception, notify_always, notify_on_terminate = text.split('\t', 2) + if text.find(' ')!= -1: + exception, notify_always, notify_on_terminate = text.split('\t', 2) + else: + exception, notify_always, notify_on_terminate = text, 0, 0 + if exception.find('-') != -1: type, exception = exception.split('-') else: