def func(): value = "not-none" while True: print("Processing") if value is None: print("None")