1. 29 May, 2020 14 commits
  2. 28 May, 2020 8 commits
  3. 25 May, 2020 2 commits
  4. 20 May, 2020 2 commits
  5. 18 May, 2020 3 commits
  6. 16 May, 2020 1 commit
  7. 15 May, 2020 2 commits
  8. 13 May, 2020 2 commits
  9. 07 May, 2020 2 commits
  10. 06 May, 2020 1 commit
  11. 05 May, 2020 1 commit
  12. 04 May, 2020 1 commit
  13. 21 Apr, 2020 1 commit
    • Andreas Beckmann's avatar
      do not call logging or raise SystemExit from within the python shutdown path · 1772478c
      Andreas Beckmann authored
      running this python3 script
      
      import logging
      class TestEnv:
         def __init__(self):
            logging.basicConfig(filename="logfile.log",level=logging.DEBUG, format='%(asctime)s %(message)s')
            logging.info("called __init__")
         def __del__(self):
            print("TestEnv.__del__")
            logging.info("called __del__")
      te = TestEnv()
      
      results in this ignored exception:
      
      TestEnv.__del__
      Exception ignored in: <function TestEnv.__del__ at 0x7fe3d047db70>
      Traceback (most recent call last):
        File "/tmp/foo.py", line 8, in __del__
        File "/usr/lib/python3.7/logging/__init__.py", line 1994, in info
        File "/usr/lib/python3.7/logging/__init__.py", line 1383, in info
        File "/usr/lib/python3.7/logging/__init__.py", line 1519, in _log
        File "/usr/lib/python3.7/logging/__init__.py", line 1529, in handle
        File "/usr/lib/python3.7/logging/__init__.py", line 1591, in callHandlers
        File "/usr/lib/python3.7/logging/__init__.py", line 905, in handle
        File "/usr/lib/python3.7/logging/__init__.py", line 1131, in emit
        File "/usr/lib/python3.7/logging/__init__.py", line 1121, in _open
      NameError: name 'open' is not defined
      
      'logging' is no longer usable because python is shutting down and some
      modules are no longer available
      
      calling sys.exit() (i.e. raising SystemExit) will just report more
      ignored exceptions
      1772478c