Skip to content

Commit

Permalink
Fixed a class cast exception when using the dynamic table logger. (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
chipkent authored Aug 12, 2022
1 parent deed278 commit ec09415
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/deephaven_ib/_internal/tablewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,17 @@ def write_row(self, values: List) -> None:
if values[i] == "":
values[i] = None

self._dtw.write_row(values)
try:
self._dtw.write_row(*values)
except Exception as e:
msg = f"Problem logging row:\n"

for i, v in enumerate(values):
msg += f"\t{i} {type(v)} {v}\n"

logging.error(msg)

raise e


ArrayStringSet = jpy.get_type("io.deephaven.stringset.ArrayStringSet")
Expand Down

0 comments on commit ec09415

Please sign in to comment.