Skip to content

why message argument for OperationalError #83

@bindi-mo

Description

@bindi-mo

line 356 in core.py

    352         caller = logging.getLogger().findCaller()
    353     file_path, line_no, func_name = caller[:3]
    355     raise OperationalError(
    356         message="\n".join(
    357             [
    358                 "failed to execute query at {:s}({:d}) {:s}".format(

empty exception string

>>> err = OperationalError('hoge')
>>> err
''

get string is call message method

>>> err.message
'hoge'

why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions