Update to Menu and Action
This commit is contained in:
@ -3,7 +3,7 @@ import time
|
||||
|
||||
|
||||
def risky_task() -> str:
|
||||
if random.random() > 0.25:
|
||||
if random.random() > 0.4:
|
||||
time.sleep(1)
|
||||
raise ValueError("Random failure occurred")
|
||||
return "Task succeeded!"
|
||||
|
Reference in New Issue
Block a user