From bece7839d1af5f77d0f5c727b5700518edff3114 Mon Sep 17 00:00:00 2001 From: Gerard Roche Date: Mon, 1 Apr 2024 04:53:38 +0100 Subject: [PATCH] fix: ''NoneType' object is not iterable' re: #128 --- CHANGELOG.md | 6 ++++++ lib/runner.py | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d12d05..5f648b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## 3.19.3 - Unreleased + +### Fixed + +- Fix ''NoneType' object is not iterable' + ## 3.19.2 - 2024-02-06 ### Fixed diff --git a/lib/runner.py b/lib/runner.py index edb202e..704c450 100644 --- a/lib/runner.py +++ b/lib/runner.py @@ -70,7 +70,11 @@ def run(self, working_dir=None, file=None, options=None) -> None: options = get_phpunit_options(self.view, options) cmd = [] - cmd += get_setting(self.view, 'prepend_cmd') + + try: + cmd += get_setting(self.view, 'prepend_cmd') + except TypeError: + pass # Strategy if get_setting(self.view, 'strategy') == 'kitty':