Skip to content

coconut.exceptions.CoconutInternalException: invalid string start location in f string #655

@hlizard

Description

@hlizard
        if not fileStartDate or not fileEndDate or abs((fileEndDate - fileStartDate).days) < min_days:
            raise errors.ValidException(msg=f"file detail startDate to endDate is {(fileEndDate - fileStartDate).days if fileEndDate and fileStartDate else 'NONE'} days,less than {min_days}. file path:{path}")

        min_months = float(self.getConfig("min_detail_months","10"))

        if not dateList or len(dateList) < min_months:
            raise errors.ValidException(msg=f"file detail startDate to endDate months is "
                                            f"{len(dateList) if dateList else 'NONE'} month,"
                                            f"less than {min_months}. file path:{path}")
coconut.exceptions.CoconutInternalException: invalid string start location in f string: "file detail startDate to endDate is {(fileEndDate - fileStartDate).days if fileEndDate and fileStartDate else 'NONE'} days,less than {min_days}. file path:{path}" (you should report this at https://github.com/evhub/coconut/issues/new)

Coconut: Version 2.0.0-a_dev48 [How Not to Be Seen] running on Python 3.7.9
and Cython cPyparsing v2.4.7.1.1.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions