key=None and exception raising