def _detect_parse_error(self, date_formats, languages):
        """
        Check following cases:

        * 2nd month in Hijri calendar can be 29 or 30 days whilst this is
        not possible for Gregorian calendar.
        """
        for lang_shortname in languages:
            language = default_language_loader.get_language(lang_shortname)
            translated = language.translate(self.source, settings=settings)
            for date_format in date_formats:
                try:
                    datetime.strptime(date_format, translated)
                except __HOLE__:
                    sep = find_date_separator(date_format)
                    m = re.search(
                        r'(?<!\d)(?:(?:(0?2){sep}(29|30))|(?:(29|30){sep}(0?2)))'.format(sep=sep),
                        translated)
                    if m:
                        raise HijriGregorianFebruaryMismatch()
dataset/ETHPy150Open scrapinghub/dateparser/dateparser/calendars/hijri.py/HijriCalendar._detect_parse_error