Skip to content
Browse files

Tolerate empty ZODB.broken class cache. Not sure how this was ever

happening.
  • Loading branch information...
1 parent 0811c1d commit b37667563f512c8948a39a4c31cf1cd56efa8465 @rpatterson committed
Showing with 4 additions and 1 deletion.
  1. +3 −0 docs/HISTORY.rst
  2. +1 −1 experimental/broken/interface.py
View
3 docs/HISTORY.rst
@@ -4,6 +4,9 @@ Changelog
0.6 - Unreleased
----------------
+- Tolerate empty ZODB.broken class cache.
+ [rossp]
+
- Fix broken class check, tolerate ExtensionClass as is the case in a
Zope2 application.
[rossp]
View
2 experimental/broken/interface.py
@@ -39,7 +39,7 @@ def provides_init(self, cls, *interfaces):
def rebuildBrokenInterface(iface):
if isinstance(iface, type) and issubclass(iface, Broken):
- broken_cache.pop((iface.__module__, iface.__name__,))
+ broken_cache.pop((iface.__module__, iface.__name__,), None)
return find_global(
iface.__module__, iface.__name__,
Broken=IBroken, type=InterfaceClass)

0 comments on commit b376675

Please sign in to comment.
Something went wrong with that request. Please try again.