Commit bd10d2f
authored
Accessing the Exception message via e.args[0] (#6451)
When opening gz files, in the case of the TypeError exception, another exception would be raised:
AttributeError: 'TypeError' object has no attribute 'message'
As python 3 exceptions have no attribute message, I replace it for e.args[0] following the pattern a few lines below.1 parent b112aa2 commit bd10d2f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
0 commit comments