X-Git-Url: https://git.mdrn.pl/turniej.git/blobdiff_plain/acea41cd89c5d8d9700e0afd7af59d4a5a8b4d2c..43cf331626ab12c2f76d19c0c545b0a0ae685db6:/apps/poetry/models.py?ds=sidebyside diff --git a/apps/poetry/models.py b/apps/poetry/models.py index b0d15b1..ef8bf94 100644 --- a/apps/poetry/models.py +++ b/apps/poetry/models.py @@ -30,7 +30,7 @@ class Poet(models.Model): stdout=subprocess.PIPE, stderr=subprocess.PIPE) os.chdir(curdir) stdout, stderr = proc.communicate() - text = stdout.decode("utf-8")[:1000] + text = unicode(stdout, "utf-8", errors="ignore")[:1000] slug = get_hash(text) title = '' if self.first_line_title: