Python interpreter cannot work well and report errors after interrupting logging.config.fileConfig()
Reproduce step:
1. type python3 in console
2. type import logging.config; logging.config.fileConfig({2,2,'sdf'},'')
3. ctrl C
4. type 1/0
-------------------------------------------------------------------------------
Python 3.9.2 (default, Mar 12 2021, 15:08:35)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1/0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
>>> import logging.config
>>> logging.config.fileConfig({2,2,'sdf'},'')
^C>>> 1/0
>>>
--------------------------------------------------------------------------------
Expected result: 1/0 will return a ZeroDivisionError after interrupting " logging.config.fileConfig({2,2,'sdf'},'') "
Actual result: Nothing output
Python 3.9.2, Ubuntu 16.04
|