1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-09-22 04:25:55 -04:00

Fix compat with older versions of python

This commit is contained in:
Ivan Habunek 2023-11-18 15:48:28 +01:00
parent 0265f7e0b7
commit 4a3b14313c
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -437,7 +437,7 @@ def _convert_with_error_handling(
data_class: Type,
field_name: str,
field_type: Type,
field_value: str | None
field_value: Optional[str]
):
try:
return _convert(field_type, field_value)