Skip to content

Commit 0cfd4f2

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pycatfile.py
1 parent bfa242f commit 0cfd4f2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pycatfile.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@
133133
rarfile_support = True
134134
except ImportError:
135135
pass
136+
except OSError:
137+
pass
136138

137139
# 7z file support
138140
py7zr_support = False
@@ -141,6 +143,8 @@
141143
py7zr_support = True
142144
except ImportError:
143145
pass
146+
except OSError:
147+
pass
144148

145149
# TAR file checking
146150
try:
@@ -167,6 +171,8 @@
167171
haveparamiko = True
168172
except ImportError:
169173
pass
174+
except OSError:
175+
pass
170176

171177
# PySFTP support
172178
havepysftp = False
@@ -175,6 +181,8 @@
175181
havepysftp = True
176182
except ImportError:
177183
pass
184+
except OSError:
185+
pass
178186

179187
# Add the mechanize import check
180188
havemechanize = False
@@ -183,6 +191,8 @@
183191
havemechanize = True
184192
except ImportError:
185193
pass
194+
except OSError:
195+
pass
186196

187197
# Requests support
188198
haverequests = False
@@ -193,6 +203,8 @@
193203
logging.getLogger("urllib3").setLevel(logging.WARNING)
194204
except ImportError:
195205
pass
206+
except OSError:
207+
pass
196208

197209
# HTTPX support
198210
havehttpx = False
@@ -203,6 +215,8 @@
203215
logging.getLogger("httpcore").setLevel(logging.WARNING)
204216
except ImportError:
205217
pass
218+
except OSError:
219+
pass
206220

207221
# HTTP and URL parsing
208222
try:

0 commit comments

Comments
 (0)