def fake_key_open_fail(*args, **kwargs): if 'password' not in kwargs: raise PasswordRequiredException()
def fake_key_open_fail(*args, **kwargs): if "password" not in kwargs: raise PasswordRequiredException() return fake_key