Skip to content

Commit f3e6113

Browse files
author
Alan Christie
committed
fix: Attempt to fix load errors
1 parent f5a35b7 commit f3e6113

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/squonk2/as_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AsApiRv:
3131
"""
3232

3333
success: bool
34-
msg: Optional[dict[Any, Any]]
34+
msg: Dict[Any, Any]
3535

3636

3737
# The Account Server API URL environment variable,
@@ -155,7 +155,7 @@ def __request(
155155

156156
# Try and decode the response,
157157
# replacing with empty dictionary on failure.
158-
msg: Optional[Dict[Any, Any]] = None
158+
msg: Dict[Any, Any] = {}
159159
if resp:
160160
try:
161161
msg = resp.json()

src/squonk2/dm_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DmApiRv:
3131
"""
3232

3333
success: bool
34-
msg: Optional[dict[Any, Any]]
34+
msg: Dict[Any, Any]
3535

3636

3737
TEST_PRODUCT_ID: str = "product-11111111-1111-1111-1111-111111111111"
@@ -159,7 +159,7 @@ def __request(
159159

160160
# Try and decode the response,
161161
# replacing with empty dictionary on failure.
162-
msg: Optional[Dict[Any, Any]] = None
162+
msg: Dict[Any, Any] = {}
163163
if resp:
164164
try:
165165
msg = resp.json()

0 commit comments

Comments
 (0)