From a58d95c7409c68b37a7c56c0333ee9a42d5caf0d Mon Sep 17 00:00:00 2001 From: GregoryHorvath Date: Wed, 26 Aug 2020 07:25:54 +0200 Subject: [PATCH] Unicode error hopefully last fix --- databank/management/commands/ingest_databank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databank/management/commands/ingest_databank.py b/databank/management/commands/ingest_databank.py index ff8e4e116..6ae88218d 100644 --- a/databank/management/commands/ingest_databank.py +++ b/databank/management/commands/ingest_databank.py @@ -76,7 +76,7 @@ def load(self): index, country_count = 1, Country.objects.count() print('\nLoading Sources data for each country to GO DB:: ') for country in Country.objects.prefetch_related('countryoverview').all(): - print(u'\t -> ({}/{}) {}'.format(index, country_count, country)) + print(u'\t -> ({}/{}) {}'.format(index, country_count, country.encode('utf-8'))) overview = ( country.countryoverview if hasattr(country, 'countryoverview') else CountryOverview.objects.create(country=country)