Commit 49d685b
Update exceptions.rst (yasoob#183)
It is always better to catch exception and raise it with a detailed information, difference between just raising and raising caught exception.
With rising e:
.. code:: python
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "<stdin>", line 2, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'test'
Just rising:
.. code:: python
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'test'1 parent 6d47c66 commit 49d685b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments