From 1a94bd6d36bd04f60d17f4a178c5022d3d5387db Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 22 Sep 2022 21:16:02 +0100 Subject: [PATCH] Add error message if send method is unknown --- ofx_processor/utils/base_ofx.py | 2 ++ pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ofx_processor/utils/base_ofx.py b/ofx_processor/utils/base_ofx.py index d9dc8f6..685e0fe 100644 --- a/ofx_processor/utils/base_ofx.py +++ b/ofx_processor/utils/base_ofx.py @@ -44,6 +44,8 @@ class OfxBaseProcessor(BaseProcessor): self._send_sms(amount) elif method == "telegram": self._send_telegram(amount) + else: + click.secho(f"Method not implemented: {method}.", fg="red", bold=True) def _get_reconciled_amount(self) -> Decimal: ofx = self._parse_file() diff --git a/pyproject.toml b/pyproject.toml index 5b8dc89..731b69f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ofx-processor" -version = "4.2.0" +version = "4.2.1" description = "Personal ofx processor" readme = "README.md" authors = ["Gabriel Augendre "]