Add exception for configparser import

This commit is contained in:
Halali 2019-01-06 13:12:31 +01:00
parent d6d7c4bd1f
commit 3ac4b75b88
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@ import logging
import time
from cork import Cork
from configparser import ConfigParser
try:
from configparser import ConfigParser
except ImportError:
from configparser2 import ConfigParser
from config import settings
from check_update import check_releases
from get_argv import config_dir