From 48f199a91bb5837273202560af376e90f682beaa Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Thu, 4 Feb 2021 19:26:39 +0100 Subject: [PATCH] Use utf-8 encoding on config files --- django_migration_linter/management/commands/lintmigrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_migration_linter/management/commands/lintmigrations.py b/django_migration_linter/management/commands/lintmigrations.py index 815c97b..2a19f02 100644 --- a/django_migration_linter/management/commands/lintmigrations.py +++ b/django_migration_linter/management/commands/lintmigrations.py @@ -129,7 +129,7 @@ class Command(BaseCommand): logging.basicConfig(format="%(message)s") config_parser = configparser.ConfigParser() - config_parser.read(DEFAULT_CONFIG_FILES) + config_parser.read(DEFAULT_CONFIG_FILES, encoding='utf-8') ignore_name_contains = options["ignore_name_contains"] or config_parser.get( CONFIG_NAME, "ignore_name_contains", fallback=None