diff --git a/Makefile b/Makefile
index 025331e..508e289 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,8 @@ test: ## Run test suite
 # Bump project_runpy.__version__
 # Update CHANGELOG (TODO)
 # `git commit -am "1.0.0"`
-# `git tag v1.0.0`
 # `make publish`
+# `git tag v1.0.0`
 # `git push --tags origin master`
 publish: ## Publish a release to PyPI
 	flit publish
diff --git a/project_runpy/heidi.py b/project_runpy/heidi.py
index 09e34f2..030b8c5 100644
--- a/project_runpy/heidi.py
+++ b/project_runpy/heidi.py
@@ -113,7 +113,7 @@ class ReadableSqlFilter(logging.Filter):
     def filter(self, record):
         # https://github.com/django/django/blob/febe136d4c3310ec8901abecca3ea5ba2be3952c/django/db/backends/utils.py#L106-L131
         duration, sql, *__ = record.args
-        if 'SELECT' not in sql[:28]:
+        if not sql or 'SELECT' not in sql[:28]:
             # WISHLIST what's the most performant way to see if 'SELECT' was
             # used?
             return super().filter(record)

SQL filter: TypeError: 'NoneType' object is not subscriptable
if 'SELECT' not in sql[:28]:

TypeError: 'NoneType' object is not subscriptable
diff --git a/test_project_runpy.py b/test_project_runpy.py
index 3f489e9..c24f978 100644
--- a/test_project_runpy.py
+++ b/test_project_runpy.py
@@ -144,6 +144,11 @@ class HeidiReadableSqlFilter(TestCase):
         self.assertTrue(logging_filter.filter(record))
         self.assertEqual('foo', record.args[1])
 
+    def test_filter_runs_when_no_sql_exists(self):
+        logging_filter = ReadableSqlFilter()
+        record = mock.MagicMock(args=(0.07724404335021973, None, ()))
+        self.assertTrue(logging_filter.filter(record))
+
     def test_filter_params_is_optional(self):
         logging_filter = ReadableSqlFilter()
         record = mock.MagicMock(args=())

pip install -e .
parse_log_pytest
requirements.txt
coverage pytest
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
exceptiongroup==1.2.2
flake8==5.0.4
importlib-metadata==4.2.0
iniconfig==2.0.0
mccabe==0.7.0
packaging==24.0
pluggy==1.2.0
-e git+https://github.com/crccheck/project_runpy.git@b70c8b4dc398411a02905ad7c97db388ace9e4fd#egg=project_runpy
pycodestyle==2.9.1
pyflakes==2.5.0
pytest==7.4.4
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.15.0

name: project_runpy
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - flake8==5.0.4
      - importlib-metadata==4.2.0
      - iniconfig==2.0.0
      - mccabe==0.7.0
      - packaging==24.0
      - pluggy==1.2.0
      - project-runpy==1.0.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
      - pytest==7.4.4
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/project_runpy

test_project_runpy.py::HeidiReadableSqlFilter::test_filter_runs_when_no_sql_exists
test_project_runpy.py::TestTimEnv::test_can_coerce_to_other_types test_project_runpy.py::TestTimEnv::test_coerced_bool_no_default_no_value_is_true test_project_runpy.py::TestTimEnv::test_f_gives_false test_project_runpy.py::TestTimEnv::test_false_gives_false test_project_runpy.py::TestTimEnv::test_get_bool_coerced_version_false test_project_runpy.py::TestTimEnv::test_get_bool_coerced_version_true test_project_runpy.py::TestTimEnv::test_geting_empty_is_null_string test_project_runpy.py::TestTimEnv::test_gets_as_bool_if_default_is_bool test_project_runpy.py::TestTimEnv::test_gets_value test_project_runpy.py::TestTimEnv::test_no_default_unless_in_environment test_project_runpy.py::TestTimEnv::test_no_default_unless_in_environment_and_bool test_project_runpy.py::TestTimEnv::test_reads_from_default test_project_runpy.py::TestTimEnv::test_reads_from_environment_if_set test_project_runpy.py::TestTimEnv::test_require_acts_like_get test_project_runpy.py::TestTimEnv::test_require_raises_exception test_project_runpy.py::TestTimEnv::test_require_raises_exception_with_stupid_default test_project_runpy.py::TestTimEnv::test_zero_gives_false test_project_runpy.py::HeidiColorizingStreamHandler::test_it_can_be_added_to_logger test_project_runpy.py::HeidiReadableSqlFilter::test_filter_formats_ignores_select_without_from test_project_runpy.py::HeidiReadableSqlFilter::test_filter_formats_select_from test_project_runpy.py::HeidiReadableSqlFilter::test_filter_formats_select_from_long test_project_runpy.py::HeidiReadableSqlFilter::test_filter_params_is_optional test_project_runpy.py::HeidiReadableSqlFilter::test_filter_trivial_case test_project_runpy.py::HeidiReadableSqlFilter::test_it_can_be_added_to_logger
Makefile project_runpy/heidi.py
Makefile project_runpy/heidi.py