Spaces:
Sleeping
Sleeping
Commit ·
6fd8c5d
1
Parent(s): d2d639f
Update run.py
Browse files
run.py
CHANGED
|
@@ -5,7 +5,7 @@ def count(n):
|
|
| 5 |
for i in range(int(n)):
|
| 6 |
time.sleep(0.5)
|
| 7 |
if i == 2:
|
| 8 |
-
|
| 9 |
else:
|
| 10 |
yield i
|
| 11 |
|
|
|
|
| 5 |
for i in range(int(n)):
|
| 6 |
time.sleep(0.5)
|
| 7 |
if i == 2:
|
| 8 |
+
raise Exception("foo!")
|
| 9 |
else:
|
| 10 |
yield i
|
| 11 |
|