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:
parent
0265f7e0b7
commit
4a3b14313c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user