def func(): value = "not-none" if value is None: print("None") return True print(value) raise RuntimeError()