Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Mar 15, 2024
1 parent 4b84f51 commit 32ed559
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
except ImportError:
haverequests = False;

if(haverequests):
import urllib3;
logging.getLogger("urllib3").setLevel(logging.WARNING);

try:
# Python 3 imports
from urllib.request import Request, build_opener, HTTPBasicAuthHandler;
Expand Down

0 comments on commit 32ed559

Please sign in to comment.