OpenRefine/OpenRefine

Python expression preview doesn't always report errors

クローズ

#3,012 opened on 2020/07/29

 (17 件のコメント) (0 件のリアクション) (0 人の担当者)Java (1,891 件のフォーク)batch import
Good First IssueType: Bugerror handlingjython

Repository metrics

Stars
 (10,056 個のスター)
PR merge metrics
 (平均マージ 4d 18h) (30d で 10 merged PRs)

説明

To Reproduce

  1. Select "Add Column based on this Column"
  2. With the expression cells.a.value.toNumber() - cells.b.value.toNumber(), switch the expression language to Python

Current Results

No error message is displayed, presumably because the response has an "ok" status:

{"code":"ok","results":[{"message":"Traceback (most recent call last):\n  File \"<string>\", line 2, in __temp_594255022__\nAttributeError: 'unicode' object has no attribute 'toNumber'\n"}]}

Expected Behavior

The error message should be displayed to the user

コントリビューターガイド