From b4159be5c67ba68909cb4d7cf5169b6dfa6c0b51 Mon Sep 17 00:00:00 2001 From: Abdul muhaimin Date: Wed, 6 Oct 2021 01:42:23 +0530 Subject: [PATCH] Update legacy_migration_settings.py --- sapl/legacy_migration_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/legacy_migration_settings.py b/sapl/legacy_migration_settings.py index 463fbb7a6..4ddf2d162 100644 --- a/sapl/legacy_migration_settings.py +++ b/sapl/legacy_migration_settings.py @@ -54,7 +54,7 @@ match = re.match('sapl_cm_(.*)', NOME_BANCO_LEGADO) SIGLA_CASA = match.group(1) _PATH_TABELA_TIMEZONES = DIR_DADOS_MIGRACAO.child('tabela_timezones.yaml') with open(_PATH_TABELA_TIMEZONES, 'r') as arq: - tabela_timezones = yaml.load(arq, yaml.Loader) + tabela_timezones = yaml.load(arq, yaml.SafeLoader) municipio, uf, nome_timezone = tabela_timezones[SIGLA_CASA] if nome_timezone: PYTZ_TIMEZONE = pytz.timezone(nome_timezone)