Add error message if send method is unknown

This commit is contained in:
Gabriel Augendre 2022-09-22 21:16:02 +01:00
parent 80a15d6825
commit 1a94bd6d36
2 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,8 @@ class OfxBaseProcessor(BaseProcessor):
self._send_sms(amount) self._send_sms(amount)
elif method == "telegram": elif method == "telegram":
self._send_telegram(amount) self._send_telegram(amount)
else:
click.secho(f"Method not implemented: {method}.", fg="red", bold=True)
def _get_reconciled_amount(self) -> Decimal: def _get_reconciled_amount(self) -> Decimal:
ofx = self._parse_file() ofx = self._parse_file()

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "ofx-processor" name = "ofx-processor"
version = "4.2.0" version = "4.2.1"
description = "Personal ofx processor" description = "Personal ofx processor"
readme = "README.md" readme = "README.md"
authors = ["Gabriel Augendre <gabriel@augendre.info>"] authors = ["Gabriel Augendre <gabriel@augendre.info>"]