dvc: add workaround for LookupError: unknown encoding: idna

Fixes #2749
This commit is contained in:
Ruslan Kuprieiev
2019-11-08 20:20:22 +02:00
committed by GitHub
parent 54760c5604
commit a0b6c38fa5
+6
View File
@@ -15,6 +15,12 @@ from dvc.remote.pool import close_pools
from dvc.utils.compat import is_py2
# Workaround for CPython bug. See [1] and [2] for more info.
# [1] https://github.com/aws/aws-cli/blob/1.16.277/awscli/clidriver.py#L55
# [2] https://bugs.python.org/issue29288
u''.encode('idna')
logger = logging.getLogger("dvc")