File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 133133 rarfile_support = True
134134except ImportError :
135135 pass
136+ except OSError :
137+ pass
136138
137139# 7z file support
138140py7zr_support = False
141143 py7zr_support = True
142144except ImportError :
143145 pass
146+ except OSError :
147+ pass
144148
145149# TAR file checking
146150try :
167171 haveparamiko = True
168172except ImportError :
169173 pass
174+ except OSError :
175+ pass
170176
171177# PySFTP support
172178havepysftp = False
175181 havepysftp = True
176182except ImportError :
177183 pass
184+ except OSError :
185+ pass
178186
179187# Add the mechanize import check
180188havemechanize = False
183191 havemechanize = True
184192except ImportError :
185193 pass
194+ except OSError :
195+ pass
186196
187197# Requests support
188198haverequests = False
193203 logging .getLogger ("urllib3" ).setLevel (logging .WARNING )
194204except ImportError :
195205 pass
206+ except OSError :
207+ pass
196208
197209# HTTPX support
198210havehttpx = False
203215 logging .getLogger ("httpcore" ).setLevel (logging .WARNING )
204216except ImportError :
205217 pass
218+ except OSError :
219+ pass
206220
207221# HTTP and URL parsing
208222try :
You can’t perform that action at this time.
0 commit comments