def __init__(self, filename):
    'Initialize exceptions interface.'
    with open(filename) as fname:
        self.exceptions = yaml.safe_load(fname)
Initialize exceptions interface.
def __init__(self, filename):
    
    with open(filename) as fname:
        self.exceptions = yaml.safe_load(fname)