diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.yml index 7ee9b07..021564d 100644 --- a/.github/workflows/master-build.yml +++ b/.github/workflows/master-build.yml @@ -5,12 +5,9 @@ on: - cron: "0 10 * * *" push: branches: - - "**" + - "master" tags: - "*.*.*" - pull_request: - branches: - - "master" jobs: tox: diff --git a/ChangeLog.md b/ChangeLog.md index 1536c9e..7c22574 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [5.0.1](https://github.com/craigerl/aprsd/compare/5.0.0...5.0.1) + +##### Bug Fixes + +- Fix HelpPlugin shadowing Python builtin `list` with local variable [`7118e23`](https://github.com/craigerl/aprsd/commit/7118e23) + +##### CI + +- Restrict master-build workflow to master branch and tags only [`3261883`](https://github.com/craigerl/aprsd/commit/3261883) + #### [5.0.0](https://github.com/craigerl/aprsd/compare/4.3.0...5.0.0) > 11 June 2026 diff --git a/aprsd/plugin.py b/aprsd/plugin.py index 1e75e28..d894ceb 100644 --- a/aprsd/plugin.py +++ b/aprsd/plugin.py @@ -300,16 +300,16 @@ class HelpPlugin(APRSDRegexCommandPluginBase): if reply: return reply - list = [] + plugin_names = [] for p in pm.get_plugins(): LOG.debug(p) if p.enabled and isinstance(p, APRSDRegexCommandPluginBase): name = p.command_name.lower() - if name not in list and 'help' not in name: - list.append(name) + if name not in plugin_names and 'help' not in name: + plugin_names.append(name) - list.sort() - reply = ' '.join(list) + plugin_names.sort() + reply = ' '.join(plugin_names) lines = textwrap.wrap(reply, 60) replies = ["Send APRS MSG of 'help' or 'help '"] for line in lines: