add socket.timeout to external_ip exceptions catch
Merge pull request #9709 from makinacorpus/fix_to

add socket.timeout to external_ip exceptions catch
No `{}` in string format calls!
Merge pull request #9710 from s0undt3ch/hotfix/lint

No `{}` in string format calls!