Comments (6)
ok. all these changes are merged in #16
from hangar-py.
@hhsecond i'll leave it to you to close this issue when you feel it is appropriate. It's good for me right now.
from hangar-py.
Hey @rlizzo, Have you got a chance to run through this? As far as I could think, raising an exception in all the cases (even for minor issues) is the best we could do unless we don't want to put the whole stack trace onto user's CLI (we could still use exception hooks to suppress those messages if we want). Or do you have some other reasons to use the bool return instead of raising exceptions that I might be missing?
from hangar-py.
Hey @hhsecond, sorry I needed a few days to really think about this.
I think you're completely right. We should be just raising exceptions for this. I'd like to stick to the Python standard library exception classes for now. As far as the stack traces go, they might print alot to the screen, but I think it's OK for now (if anything it'll help us debug any user bug reports); getting pretteir tracebacks is a problem for another time. If we just log to error to the console before raising the exception, it should be OK for now - we just need to have fairly informative error messages.
I'm putting together a PR for this right now, should be merged before I go to bed tonight. sorry if this was holding you up at all!
from hangar-py.
Hey @rlizzo, no worries and thanks a lot for taking this for me. I even had started this in a separate branch but then thought of discussing with you about the design. I am keeping this issue opened at least until I finish both local and remote testing. I'll open more PRs if required in the future given that now I know what should be the way forward for exceptions.
from hangar-py.
Closing due to inactivity
from hangar-py.
Related Issues (20)
- Not able to import hangar HOT 4
- [BUG REPORT] OSError: symbolic link privilege not held HOT 2
- [BUG REPORT] TypeError: 'rdcc_nbytes' is an invalid keyword argument for this function HOT 4
- Symbolic Link Priveliges
- Not able to init hangar HOT 4
- [FEATURE REQUEST] Reporting utility for time consuming details
- [FEATURE REQUEST] Ability to make tags HOT 3
- [BUG REPORT] NamedTuple doesn't like all the name formats hangar allows HOT 1
- [BUG REPORT] `repo.checkout` accepts `commit` argument when `write=True`
- [QUESTION & DOCS]: Comparison with DVC HOT 5
- [BUG REPORT] Removing remote branches
- [FEATURE REQUEST] Branch rebase and commit cherry-pick
- Commit Level Metadata
- [BUG REPORT] Transaction registers closes early HOT 2
- [BUG REPORT] Diff status always returns CLEAN inside CM
- [BUG REPORT] Fetch data raises error witih default argument values HOT 1
- [BUG REPORT] repo.summary() breaks if there's no commits
- skbuild is a dependancy for blosc HOT 1
- [QUESTION & DOCS]: hangar versus DVID?
- [FEATURE REQUEST] Read checkout to be able to read data from staging area HOT 1
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 hangar-py.