You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no corresponding else to the above if statement, which sets the correct data formatter to use on the data structure found in a query response. This means that if a data type isn't included in the default_fields dict, the client will attempt to format the response using whatever data formatter had previously been set.
To reproduce: run the serieses query and then the books query. Serieses are included in default_fields and books are not. The books query will raise an error showing that the client had attempted to format the response as though it were a set of serieses (hitting an error when no seriesName was found).
The example is from v0.9.0, but the issue also occurs in earlier versions of structures.py.
The text was updated successfully, but these errors were encountered:
thoth-client/thothlibrary/thoth-0_9_0/structures.py
Line 325 in 2239642
There is no corresponding
else
to the aboveif
statement, which sets the correct data formatter to use on the data structure found in a query response. This means that if a data type isn't included in thedefault_fields
dict, the client will attempt to format the response using whatever data formatter had previously been set.To reproduce: run the
serieses
query and then thebooks
query. Serieses are included indefault_fields
and books are not. Thebooks
query will raise an error showing that the client had attempted to format the response as though it were a set of serieses (hitting an error when noseriesName
was found).The example is from v0.9.0, but the issue also occurs in earlier versions of
structures.py
.The text was updated successfully, but these errors were encountered: