From 191190751e2465406a3c863722e4e9d0c9fae762 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Mon, 21 Mar 2011 17:02:12 +0100 Subject: fixed (error) messages of import commands. diff --git a/program/management/commands/importnotes.py b/program/management/commands/importnotes.py index faf3ea3..da2f66c 100644 --- a/program/management/commands/importnotes.py +++ b/program/management/commands/importnotes.py @@ -50,7 +50,7 @@ WHERE n.sendung_id in (SELECT id FROM sendungen WHERE letzter_termin > current_d try: note.save() except: - print 'could not save note "%s" for show "%s"' % (ntitel, stitel) + print 'could not save note "%s" for show "%s" and datum "%s"' % (ntitel, stitel, datum) else: counter += 1 except ObjectDoesNotExist: diff --git a/program/management/commands/importshows.py b/program/management/commands/importshows.py index a907cca..6efbb65 100644 --- a/program/management/commands/importshows.py +++ b/program/management/commands/importshows.py @@ -55,7 +55,7 @@ ORDER BY titel, beginn, ende""") show.save() counter += 1 except: - print 'ERR: sendung "%s" could not be imported' % titel + print 'sendung "%s" could not be imported' % titel else: for h in hosts: show.hosts.add(h) -- cgit v0.10.2