1 2 3 4 5 6
def recover_config(): try: return read_config() except ValueError: return default_config()