piknik

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

commit b783e48a9d6682257016236a723c7b5ac4118714
parent ff2a31310e286341dd3a0eab97c4a66ec9fed421
Author: lash <dev@holbrook.no>
Date:   Thu, 20 Apr 2023 07:50:44 +0100

Fix crash on cmds missing show_finished arg

Diffstat:
MCHANGELOG | 2++
Mpiknik/cli/__init__.py | 2+-
Msetup.cfg | 2+-
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.3.5 + * Fix crash using other tools than show on missing --show-missing flag. - 0.3.4 * Fix endless recursion bug for html issue render introduced in v0.3.3 - 0.3.3 diff --git a/piknik/cli/__init__.py b/piknik/cli/__init__.py @@ -11,7 +11,7 @@ class Context: def __init__(self, arg, assembler, mode=0, gpg_home=os.environ.get('GPGHOME')): self.issue_id = arg.issue_id self.files_dir = arg.files_dir - self.show_finished = arg.show_finished + self.show_finished = getattr(arg, 'show_finished', False) self.show_states = arg.state #self.store_factory = FileStoreFactory(arg.d) store_factory = FileStoreFactory(arg.d) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = piknik -version = 0.3.4 +version = 0.3.5 description = CLI issue tracker author = Louis Holbrook author_email = dev@holbrook.no