[Checkins] [zopefoundation/zope.interface] 84872a: Remove the bare except: statements.

Jason Madden noreply at github.com
Thu Apr 2 14:53:14 CEST 2020


  Branch: refs/heads/issue200
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 84872a8d2ab6b980aebc1c3c1ffb6aee9cf97ea5
      https://github.com/zopefoundation/zope.interface/commit/84872a8d2ab6b980aebc1c3c1ffb6aee9cf97ea5
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-02 (Thu, 02 Apr 2020)

  Changed paths:
    M CHANGES.rst
    M src/zope/interface/_zope_interface_coptimizations.c
    M src/zope/interface/declarations.py
    M src/zope/interface/interface.py
    M src/zope/interface/tests/__init__.py
    M src/zope/interface/tests/test_adapter.py
    M src/zope/interface/tests/test_declarations.py
    M src/zope/interface/tests/test_interface.py

  Log Message:
  -----------
  Remove the bare except: statements.

Only catch AttributeError instead of everything.

Fixes #200

Note that this does break a doctest in five.intid (it's expecting a TypeError but it now gets Acquisition's RuntimeError).




More information about the checkins mailing list