Commit 31c6497
committed
Fix issue when a URL is incorrectly parsed.
This patch fixes #269.
Indeed, while using urllib.parse.urlpase, the hostname may be a NoneType.
Therefore, the following exception has been raised by other subsystem that
try to lookup the IP of hte hostname.
TypeError: <self.subject> should be <class 'str'>, <class 'NoneType'>
given.
This patch fixes it by double checking if a NoneType is sent for DNS
resolution.
Contributors:
* @T1451 parent 6c98103 commit 31c6497
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
181 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
0 commit comments