akt-cli 0.4.0__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akt-cli
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: akt — a CLI toolbox to fully drive an Akaunting accounting instance
5
5
  Keywords: akaunting,accounting,cli,invoices,bills,api
6
6
  Author: AsyncAlchemist
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "akt-cli"
3
- version = "0.4.0"
3
+ version = "0.4.1"
4
4
  description = "akt — a CLI toolbox to fully drive an Akaunting accounting instance"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -74,7 +74,11 @@ def parse_coa(text: str) -> CoaConfig:
74
74
  code = int(row["code"])
75
75
  name = str(row["name"])
76
76
  type_id = int(row["type_id"])
77
- mirror = bool(row.get("mirror", True))
77
+ mirror = row.get("mirror", True)
78
+ if not isinstance(mirror, bool):
79
+ raise ValueError(
80
+ f"account '{name}': 'mirror' must be a boolean (true/false), "
81
+ f"got {mirror!r} — did you quote it?")
78
82
  category = str(row.get("category", name))
79
83
  if code in seen_codes:
80
84
  raise ValueError(f"duplicate code {code}")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes