We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UnicodeDecodeError
list_templates
1 parent 9b2c561 commit 9afb254Copy full SHA for 9afb254
nonebot_plugin_orm/migrate.py
@@ -341,7 +341,7 @@ def list_templates(config: AlembicConfig) -> None:
341
342
config.print_stdout("可用的模板:\n")
343
for tempname in Path(config.get_template_directory()).iterdir():
344
- with (tempname / "README").open() as readme:
+ with (tempname / "README").open(encoding="utf-8") as readme:
345
synopsis = readme.readline().rstrip()
346
347
config.print_stdout(f"{tempname.name} - {synopsis}")
0 commit comments