Comments (2)
Yes, this is a much better solution. I'll implement it. It just might take a while. I'll get back to you once I have something.
from base16-builder-python.
Hello hello! Sorry for the late reply and thank you for the suggestion. We can definitely distinguish between those two error types, however I don't think it's necessary to subclass LookupError. Instead, I think it would be a good idea to clean up the error printing code so that error messages are just passed along together with the exception instance.
So instead of this
def something():
raise LookupError
try:
something()
except LookupError:
print("specific error message")
we should do this:
def something():
raise LookupError("specific error message")
try:
something()
except LookupError as exc:
print(exc.msg)
The err_print
function should be adapted to this end as well. Would you be interested in implementing this as well? If it's a bit too far removed from what you had in mind, I'd gladly do it myself (might take a bit though).
from base16-builder-python.
Related Issues (16)
- Single Color Scheme HOT 1
- Update doesn't find git executable HOT 21
- update doesn't respect shell environment
- "inject -s" syntax doesn't match "build -s" syntax HOT 5
- Correct Readme HOT 3
- Update to base16 0.9.1 HOT 8
- Return non-zero code on an error HOT 6
- pybase16 update prompts for Github credentials HOT 4
- Python <3.6 compatibility HOT 4
- PyPI Request: Update HOT 1
- Licensing Question HOT 1
- If a template doesn't provide a file extension the output file names have None appended HOT 1
- Failed to Update HOT 3
- Bad characters \u2026
- Workflow: How to ? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base16-builder-python.