Handle raised errors exceptions from DuniterPy
…and other programs
- wrong pubkey format passed as argument (base58)
- node not available:
Traceback (most recent call last):
File "/home/moul/.local/share/virtualenvs/silkaj-j7KYGuTG/lib/python3.7/site-packages/aiohttp/connector.py", line 924, in _wrap_c
reate_connection
await self._loop.create_connection(*args, **kwargs))
File "/usr/lib64/python3.7/asyncio/base_events.py", line 959, in create_connection
raise exceptions[0]
File "/usr/lib64/python3.7/asyncio/base_events.py", line 946, in create_connection
await self.sock_connect(sock, address)
File "/usr/lib64/python3.7/asyncio/selector_events.py", line 464, in sock_connect
return await fut
File "/usr/lib64/python3.7/asyncio/selector_events.py", line 494, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 10901)
The above exception was the direct cause of the following exception:
The idea is to display just the message error rather than the whole stack trace.