|
@ -809,12 +809,12 @@ while True: |
|
|
break |
|
|
break |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
#### Raising exception: |
|
|
### Raising Exceptions |
|
|
```python |
|
|
```python |
|
|
raise ValueError('A very specific message!') |
|
|
raise ValueError('A very specific message!') |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
#### Finally: |
|
|
### Finally |
|
|
```python |
|
|
```python |
|
|
>>> try: |
|
|
>>> try: |
|
|
... raise KeyboardInterrupt |
|
|
... raise KeyboardInterrupt |
|
|
xxxxxxxxxx