Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configparser.NoSectionError: No section: 'custom' #33

Open
1 task done
viloteyuesheng opened this issue Mar 14, 2023 · 3 comments
Open
1 task done

configparser.NoSectionError: No section: 'custom' #33

viloteyuesheng opened this issue Mar 14, 2023 · 3 comments

Comments

@viloteyuesheng
Copy link

viloteyuesheng commented Mar 14, 2023

描述问题
请简明阐述您的问题

复现问题
复现问题的步骤:

  1. 数据库迁移时显示说我少了个参数custom
configparser.NoSectionError: No section: 'custom'
请将报错信息复制到此处

截图:(可选)

操作环境(请提供以下完整数据):

  • 操作系统:windows
  • 使用方式:源码
  • 可执行文件版本(若是): 0.2.0
  • 数据库类型:mysql
  • 浏览器:Chrome

额外信息:(可选)
任何其他的您认为有助于能描述问题/解决问题的信息。

@Benature
Copy link
Owner

Benature commented Mar 21, 2023

应该是 config 文件内容缺失?见

# ======================================================
# 用户自定义配置区
# ======================================================
[custom]
# 是否自动打开浏览器
auto_open_browser = yes
# 使用数据库类型:`sqlite`(默认)、`mysql`
db_type = sqlite

@xuminxi
Copy link

xuminxi commented Nov 27, 2023

這邊似乎有問題,有個workaround可以直接到settings裏面賦值,就不會出現報錯了。

@Benature Benature changed the title 感谢您的分享 configparser.NoSectionError: No section: 'custom' Nov 27, 2023
@Benature
Copy link
Owner

或者更新下仓库代码,做了新的适配

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants