Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/Psycojoker/dierentheater
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed May 9, 2012
2 parents 7819841 + 3a3143b commit 997e569
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lachambre_parser/utils.py
Expand Up @@ -27,6 +27,8 @@

from django.conf import settings

from history.utils import irc

LACHAMBRE_PREFIX = "http://www.lachambre.be/kvvcr/"


Expand Down Expand Up @@ -98,14 +100,18 @@ def get_not_accessed_keys(self):

def die_if_got_not_accessed_keys(self):
if self.get_not_accessed_keys():
logger.debug("\nError: untreated sections:")
logger.error("\nError: untreated sections:")
irc("\nError: untreated sections:")
for i in self.get_not_accessed_keys():
if isinstance(i, (str, unicode)):
logger.debug("* %s" % i)
logger.error("* %s" % i)
irc("* %s" % i)
else:
for j in i:
logger.debug(" * %s" % j)
logger.debug("------------ stop ------------")
logger.error(" * %s" % j)
irc(" * %s" % j)
logger.error("------------ stop ------------")
irc("Error: dico got un-accessed keys, die")
import sys
sys.exit(1)

Expand Down

0 comments on commit 997e569

Please sign in to comment.