mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-21 21:34:48 +08:00
Fix configparser2 import
This commit is contained in:
parent
4c8b225926
commit
51d5e5c989
3 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import logging
|
|||
import time
|
||||
|
||||
from cork import Cork
|
||||
from configparser import ConfigParser
|
||||
from configparser2 import ConfigParser
|
||||
from config import settings
|
||||
from check_update import check_releases
|
||||
from get_argv import config_dir
|
||||
|
|
|
@ -24,7 +24,7 @@ THE SOFTWARE.
|
|||
"""
|
||||
|
||||
try:
|
||||
from configparser import ConfigParser as configparser, NoOptionError, NoSectionError
|
||||
from configparser2 import ConfigParser as configparser, NoOptionError, NoSectionError
|
||||
except ImportError:
|
||||
from ConfigParser import SafeConfigParser as configparser, NoOptionError, NoSectionError
|
||||
|
||||
|
|
Loading…
Reference in a new issue