`kraken`: catch value error not index on missing `src_fiat` in pair

misc_brokerd_backend_repairs
Tyler Goodlet 2023-01-16 16:40:22 -05:00
parent afc45a8e16
commit 090d1ba524
1 changed files with 3 additions and 1 deletions

View File

@ -509,7 +509,9 @@ async def trades_dialogue(
for bsuid in table.pps: for bsuid in table.pps:
try: try:
dst_name_start = bsuid.rindex(src_fiat) dst_name_start = bsuid.rindex(src_fiat)
except IndexError: except (
ValueError, # substr not found
):
# TODO: handle nested positions..(i.e. # TODO: handle nested positions..(i.e.
# positions where the src fiat was used to # positions where the src fiat was used to
# buy some other dst which was furhter used # buy some other dst which was furhter used