Catch and retry on ssl errors

This commit is contained in:
kermit
2020-09-16 15:44:15 +01:00
parent 3e93a9f180
commit e0194c8241
3 changed files with 30 additions and 22 deletions

View File

@ -8,7 +8,8 @@ import logging
import os.path as path
import json
from os import remove
from urllib.request import urlopen
import eventlet
urlopen = eventlet.import_patched('urllib.request').urlopen
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('deemix')