Hello,
I am trying to figure out an error in brython but cant understand where the error is.
The error is:
185VM98506:673 Uncaught Error
at Object._b_.TypeError (eval at $make_exc (brython.js:6441), <anonymous>:121:376)
at Object.$B.$is_member (brython.js:5037)
at WebSocket.ws_on_message9 (eval at run_script (brython.js:4184), <anonymous>:649:32)
_b_.TypeError @ VM98333:121
$B.$is_member @ brython.js:5037
ws_on_message9 @ VM98506:649
I am calling brython with
<body onload="brython(1)">
Also tried
<body onload="brython({debug:1})">
and
<body onload="brython({debug_mode:1})">
Am I missing something basic here? I want to get the python error, like the docs state "as close as possible to the one generated by Python3".
Can someone point out what I am missing here please?
Thanks,
Sam.