arthaud / git-dumper

A tool to dump a git repository from a website
MIT License
1.69k stars 235 forks source link

fix: disabled urlib3 SSL warnings #26

Closed oppsec closed 2 years ago

oppsec commented 3 years ago

Hello,

I've added the function urlib3.disable_warnings() to avoid the SSL warning message flood.

Best regards, oppsec.

arthaud commented 3 years ago

Could you move this in the main function please? So that if people use this as a library (unlikely but..) it won't affect their setup. Thanks for contributing!

meme-lord commented 3 years ago

Isn't urllib3.disable_warnings already there on line 710? urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

oppsec commented 3 years ago

Isn't urllib3.disable_warnings already there on line 710? urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

I'm on Windows 10 Pro and sometimes the message keeps appearing to me and I think it's not a problem using urllib3.disable_warnings()