Commit 9b50dea
committed
conf.py: py2/py3 compatible exception handling
Python 3 requires "except Exception as ex"
Python earlier than 2.6 does not understand that syntax.
To be compatible with both, get the exception object from
sys.exc_info().
Related: rhbz#13281991 parent 3a5ea33 commit 9b50dea
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
| 337 | + | |
| 338 | + | |
337 | 339 | | |
0 commit comments