From 5826fb247586a8cbc07b851196035efa8a1d8571 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 24 Oct 2019 14:49:59 +0300 Subject: [PATCH] mysql to docker-compose fix exception --- apps/utils/legacy_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/utils/legacy_parser.py b/apps/utils/legacy_parser.py index a0e526f2..b69e2604 100644 --- a/apps/utils/legacy_parser.py +++ b/apps/utils/legacy_parser.py @@ -7,6 +7,6 @@ def parse_legacy_content(legacy_content): result = '' try: result = content_dict['news_content']['value'] - except IndexError: + except KeyError: pass return result