-
Notifications
You must be signed in to change notification settings - Fork 3
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
Create setup.py and add bot apis #6
base: main
Are you sure you want to change the base?
Conversation
1.3. ~~美化目录结构和代码格式,提升可维护性。~~ 2.2. ~~excel模板搞一个管理器,支持通过字符串查找模板~~ Signed-off-by: Haphaistos2333 <[email protected]>
感觉就是两处返回错误提示信息的地方,确认下当前这样ok不。其它没看出啥问题,功能ok可以合入 |
Please review it and make it merged. |
parser = excel_parser(open(input_file_path, 'rb')) | ||
result, errors = parser.parse_for_community(community_parser()) | ||
if errors: | ||
return f"以下单元格数据无法识别,请检查:\n{errors}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
返回失败和成功的类型都是str,调用者如何分辨这是成功后生成的路径还是错误提示信息呢?
workbook.save(input_file_path) | ||
return True | ||
except Exception as error: | ||
print(f"Cannot modify file {input_file_path}, error:\n {error}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这条错误信息调用者get不到,这个只在后台打印还是需要用户感知一下?
No description provided.