def get_datetime(self, xml_element, sub_element_name, default):
        try:
            date_text = xml_element.findtext(sub_element_name)
            return datetime.strptime(date_text, "%Y-%m-%d")
        except ValueError:
            if self.debug:
                print "Error parsing string '%s' into datetime.\n" % date_text, 
            return default
        except:
            return default
dataset/ETHPy150Open mrtrumbe/meliman/thetvdb.py/TheTvDb.get_datetime/original