BoostryJP / ibet-Prime

Advanced API Toolkit for Digital Securities Issuance and Management on the ibet Network 🚀
https://ibet.jp/ibet-for-fin
Apache License 2.0
11 stars 1 forks source link

[BUG] Settlement-cli cannot render settlement data list #683

Closed purplesmoke05 closed 2 months ago

purplesmoke05 commented 2 months ago

Describe the bug

apl@b60d0751aecf:/$ settlement-cli list 0x05cc1261C1dA60A8AF7D1A6195F4643D455B66e3 0xbf3747a1cCCa2F830492E9Ea248Dd5d562082d7F
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /app/ibet-Prime/cmd/settlement/src/main.py:105 in list_deliveries                                │
│                                                                                                  │
│   102 │   │   │   case _:                                                                        │
│   103 │   │   │   │   status = None                                                              │
│   104 │   │                                                                                      │
│ ❱ 105 │   │   delivery_table.add_row(                                                            │
│   106 │   │   │   str(idx_delivery["delivery_id"]),                                              │
│   107 │   │   │   idx_delivery["token_address"],                                                 │
│   108 │   │   │   idx_delivery["buyer_address"],                                                 │
│                                                                                                  │
│ /home/apl/.pyenv/versions/3.12.2/lib/python3.12/site-packages/rich/table.py:459 in add_row       │
│                                                                                                  │
│    456 │   │   │   elif is_renderable(renderable):                                               │
│    457 │   │   │   │   add_cell(column, renderable)                                              │
│    458 │   │   │   else:                                                                         │
│ ❱  459 │   │   │   │   raise errors.NotRenderableError(                                          │
│    460 │   │   │   │   │   f"unable to render {type(renderable).__name__}; a string or other re  │
│    461 │   │   │   │   )                                                                         │
│    462 │   │   self.rows.append(Row(style=style, end_section=end_section))                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
NotRenderableError: unable to render dict; a string or other renderable object is required

Expected behavior