diff --git a/.cz.toml b/.cz.toml index 45fe7310..ebaae498 100644 --- a/.cz.toml +++ b/.cz.toml @@ -9,7 +9,7 @@ # https://commitizen-tools.github.io/commitizen/ name = "cz_conventional_commits" changelog_start_rev = "v0.0.0" -version = "2.0.0b1" +version = "2.0.0b2" tag_format = "v$version" annotated_tag = true gpg_sign = true diff --git a/NEWS-VERSION.rst b/NEWS-VERSION.rst index a1a73ac7..2bfcb922 100644 --- a/NEWS-VERSION.rst +++ b/NEWS-VERSION.rst @@ -1,10 +1,29 @@ -prunerr 2.0.0b1 (2023-10-29) +prunerr 2.0.0b2 (2023-10-30) ============================ Bugfixes -------- -- Trigger a release after the v2.0.0b0 release failure. +- Fix handling of empty top-level keys in the configuration file:: + + DEBUG:prunerr.runner:Sub-command `exec` completed in 89.50181317329407s + Traceback (most recent call last): + File "/usr/local/bin/prunerr", line 8, in + sys.exit(main()) + ^^^^^^ + File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 241, in main + _main(args=args) + File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 288, in _main + if (result := parsed_args.command(runner, **command_kwargs)) is not None: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 181, in daemon + runner.daemon(*args, **kwargs) + File "/usr/local/lib/python3.11/site-packages/prunerr/runner.py", line 337, in daemon + poll = self.config.get("daemon", {}).get("poll", 60) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + AttributeError: 'NoneType' object has no attribute 'get' +- Get default values from `the example configuration file + `_. diff --git a/NEWS.rst b/NEWS.rst index eac44bf4..900b8c7c 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1,3 +1,31 @@ +prunerr 2.0.0b2 (2023-10-30) +============================ + +Bugfixes +-------- + +- Fix handling of empty top-level keys in the configuration file:: + + DEBUG:prunerr.runner:Sub-command `exec` completed in 89.50181317329407s + Traceback (most recent call last): + File "/usr/local/bin/prunerr", line 8, in + sys.exit(main()) + ^^^^^^ + File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 241, in main + _main(args=args) + File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 288, in _main + if (result := parsed_args.command(runner, **command_kwargs)) is not None: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 181, in daemon + runner.daemon(*args, **kwargs) + File "/usr/local/lib/python3.11/site-packages/prunerr/runner.py", line 337, in daemon + poll = self.config.get("daemon", {}).get("poll", 60) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + AttributeError: 'NoneType' object has no attribute 'get' +- Get default values from `the example configuration file + `_. + + prunerr 2.0.0b1 (2023-10-29) ============================ diff --git a/newsfragments/+config-defaults-example.bugfix.rst b/newsfragments/+config-defaults-example.bugfix.rst deleted file mode 100644 index 00a1393d..00000000 --- a/newsfragments/+config-defaults-example.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Get default values from `the example configuration file -`_. diff --git a/newsfragments/+config-empty-keys.bugfix.rst b/newsfragments/+config-empty-keys.bugfix.rst deleted file mode 100644 index 2f3f48c6..00000000 --- a/newsfragments/+config-empty-keys.bugfix.rst +++ /dev/null @@ -1,18 +0,0 @@ -Fix handling of empty top-level keys in the configuration file:: - - DEBUG:prunerr.runner:Sub-command `exec` completed in 89.50181317329407s - Traceback (most recent call last): - File "/usr/local/bin/prunerr", line 8, in - sys.exit(main()) - ^^^^^^ - File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 241, in main - _main(args=args) - File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 288, in _main - if (result := parsed_args.command(runner, **command_kwargs)) is not None: - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/local/lib/python3.11/site-packages/prunerr/__init__.py", line 181, in daemon - runner.daemon(*args, **kwargs) - File "/usr/local/lib/python3.11/site-packages/prunerr/runner.py", line 337, in daemon - poll = self.config.get("daemon", {}).get("poll", 60) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - AttributeError: 'NoneType' object has no attribute 'get' diff --git a/package.json b/package.json index fcd98a45..db11d97e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@rpattersonnet/prunerr", "scope": "@rpattersonnet", - "version": "2.0.0-b1", + "version": "2.0.0-b2", "description": "Perma-seed Servarr media libraries", "scripts": { "lint": "npm run lint:code && npm run lint:prose",