fix: seven.io-Statuscode als nacktes int/float robust parsen (0.1.1)
Der SMS-Endpunkt liefert standardmäßig nur den nackten Statuscode (z. B. 100), der als JSON zu einem int decodiert — _parse rief darauf data.get() auf und crashte mit AttributeError. Jetzt wird ein Nicht-Objekt-JSON als Statuscode behandelt (ok = code == "100"). - client.py: _parse behandelt dict / int-Code / Text einheitlich - Tests: nackter int-Code 100 (ok) und 900 (Fehler) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
f7b791fdeb
commit
fad93e194f
4 changed files with 31 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||
|
||||
[project]
|
||||
name = "seven-send"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
description = "Kleine Library + CLI zum Verschicken von SMS und TTS-Sprachanrufen über seven.io"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue