Asyncio Run errors not diplayed by pycharm
I am running a python 3.7 asyncio program. when I make an obvious error like this in a class:
for pos in range(billval):
which should be
for pos in range(self.billval):
I am not getting an error indicating the variable is bad, I am getting this:
2020-05-02T08:30:55-0700 Unhandled error in Deferred:
2020-05-02T08:30:55-0700 Traceback (most recent call last):
File "/home/.../venv/lib/python3.7/site-packages/autobahn/wamp/websocket.py", line 95, in onMessage
self._session.onMessage(msg)
File "/home.../venv/lib/python3.7/site-packages/autobahn/wamp/protocol.py", line 748, in onMessage
txaio.add_callbacks(future, _success, _error)
File "/home/.../venv/lib/python3.7/site-packages/txaio/tx.py", line 443, in add_callbacks
future.addCallbacks(callback, errback)
File "/home/.../venv/lib/python3.7/site-packages/twisted/internet/defer.py", line 311, in addCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/home/.../venv/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/.../venv/lib/python3.7/site-packages/autobahn/wamp/protocol.py", line 745, in _error
return self._swallow_error(e, errmsg)
File "/home/.../venv/lib/python3.7/site-packages/autobahn/wamp/protocol.py", line 490, in _swallow_error
tb=txaio.failure_format_traceback(txaio.create_failure()),
File "/usr/lib/python3.7/logging/__init__.py", line 1412, in error
self._log(ERROR, msg, args, **kwargs)
builtins.TypeError: _log() got an unexpected keyword argument 'tb'
and looking on Google for "keyword argument 'tb'" does not seem to lead anywhere.
1) I attempted to look for something in PyCharm setup about "do report errors vs do not" to no avail
2) I spoke to a friend who has developed asyncio code and he said "yeah, there is no error reporting in asyncio" which I find absolutely incredible
Can I get some clues to chase down a solution please?
请先登录再写评论。
Hello,
Will you get the same error running the program out of PyCHarm? If this behavior is specific for the IDE, please attach a minimal code example so I will be able to reproduce it.