From 1372c00a0668cc6a39953264d23f012391afe768 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Wed, 1 Feb 2017 04:40:24 +0300 Subject: [PATCH] PY-22460: Check variable before accessing it --- python/helpers/pycharm/_jb_unittest_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/pycharm/_jb_unittest_runner.py b/python/helpers/pycharm/_jb_unittest_runner.py index 0d8969c765ba..973a169cafbe 100644 --- a/python/helpers/pycharm/_jb_unittest_runner.py +++ b/python/helpers/pycharm/_jb_unittest_runner.py @@ -19,7 +19,7 @@ if __name__ == '__main__': else: discovery_args.append(path) additional_args = discovery_args + additional_args - else: + elif targets: additional_args += targets args += additional_args jb_doc_args("unittests", args)