Add assert False
@@ -58,6 +58,9 @@ def dispatch_notification(func):
elif _thread_locals.dispatch_type == 'warn':
warnings.warn(msg, FallbackWarning, stacklevel=3)
+ elif _thread_locals.dispatch_type == 'ignore':
+ pass
+
elif _thread_locals.dispatch_type == 'log':
logger = FallbackLogger.getlogger()
logger.warning(msg)
@@ -65,6 +68,9 @@ def dispatch_notification(func):
elif _thread_locals.dispatch_type == 'raise':
raise AttributeError(raise_msg)
+ else:
+ assert False
+
class errstate:
