Skip to content

fish_system,修改 conf_as_dict 方法,返回异常信息 #280

Description

@halfapple

目前 conf_as_dict 对于错误处理,直接内部隐藏,没有吐出。
调整后,可以把错误信息吐出。

# 读入 config 文件
try:
    if sys.version > '3':
        cf.read(conf_filename, encoding=encoding)
    else:
        cf.read(conf_filename)
except Exception as e:
    return flag, {}, str(e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions