class Suppressor:

    def __init__(self, exception_type, l=None):
        self._exception_type = exception_type
self.logger = logging.getLogger('Suppressor')
if l:
    self.l = l
else:
    self.l = {}

def __call__(self, expression):
    pass
How to prevent try catching every possible line in python?