Define and use a base Exception class for the package
还没有人认领这个 Issue。
评估
调研方向
从引用行中的 omgeo/services/esri.py 开始,然后在包中搜索其他 raise Exception(...) 用法。定义一个包级基异常,并更新已识别的自定义异常抛出,使其使用该异常。完成的标准是,用户可以捕获包专用异常,而不是内置的 Exception。
由索引模型根据 Issue 内容生成。
描述
There are several places where this raises a custom exception with raise Exception(...), e.g. https://github.com/azavea/python-omgeo/blob/8308301edf3921b97dd977f8b54b3201a29b3868/omgeo/services/esri.py#L91.
Making users of the package catch Exception is not very nice. Even if we don't need subtypes, we should define a base Exception class for the package so that people can make their exception handling more specific.
- 主要语言
- Python
- 星标
- 37
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
azavea/python-omgeo 的其他 Issue
-
Release 6.2.0可能重新可做 @rajadain 于 902 天前认领,目前没有进行中的 PR。 未关闭operations
azavea/python-omgeo#70 · 已指派 2 人 ·
-
难度 4/5 3-5 天 新手友好度 35/100
azavea/python-omgeo#69 ·
-
难度 4/5 3-5 天 新手友好度 30/100
azavea/python-omgeo#66 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
azavea/python-omgeo#65 ·
-
难度 1/5 1-3 小时 新手友好度 35/100
azavea/python-omgeo#59 ·
查看 azavea/python-omgeo 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
Deepak3699/Ai_Mentor#244 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
btclib-org/btclib-node#1880 ·
维护者通常 1 天内回复
-
CONTRIBUTING.md: say how ticketless bug fixes and feature PRs are handled可能已有人在做 @khuisman 今天认领。 未关闭v0.9.2
难度 1/5 1 小时以内 新手友好度 84/100
khuisman/mcp-gee-sweet#941 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
pyjanitor-devs/pyjanitor#1758 ·
维护者通常 1 天内回复
-
bug ready for review
难度 2/5 1-3 小时 新手友好度 86/100
odysseus-dev/odysseus#6641 ·
维护者通常 1 天内回复