Comments (6)
Yes, every entry that is no integer gives this exception and wrong numbers give a KeyError Exception.
I could catch these, print a simple "not a valid choice" and exit.
Or should I ask again until the user provides anything that works?
from musicbrainz-isrcsubmit.
Perhaps you could say "Could not interpret input. Do you want to try again? [Y/n]" - if "n", exit, if "Y" present the "menu" again?
I pressed enter to deliberately exit the script (as I wanted to look it up on the site before picking the release to continue with).
from musicbrainz-isrcsubmit.
Yes, I also use this exception to quit, rather than pressing CTRL+C..
Not really sure if another layer of "trying again" is worth it. You can just restart the script and you are in the same "menu" again in 1-2 seconds. It's not like you lose any previous (tidious) input.
from musicbrainz-isrcsubmit.
I'm fine with anything, I just like my programs to not show me a backtrace when I quit them. :)
from musicbrainz-isrcsubmit.
I would have liked it to quit in that circumstance, like isrcsubmit.exe
did. cf. new issue #32.
What do you think, Freso.
from musicbrainz-isrcsubmit.
I'm fine with anything, I just like my programs to not show me a backtrace when I quit them. :)
from musicbrainz-isrcsubmit.
Related Issues (20)
- [bug] ^c does not stop script immediately
- --no-keyring still checks for DBus secrets interface HOT 2
- "ERROR: cdrdao returned with 1" and no further info HOT 5
- proxy option HOT 1
- Documented option β-hβ does not display help HOT 4
- Failed install on macOS 10.12 HOT 4
- Multiple discs in single release with same TOC cause a crash
- `setup.py install` broken HOT 9
- improve installing via pip HOT 4
- Getting an error page when I try to submit to musicbrainz HOT 3
- musicbrainz-isrcsubmit slow with cdrdao HOT 1
- Could not find module 'discid.dll' HOT 3
- Release selection improvement
- --force-submit requires internet connection
- Drop support for old Python versions
- Submit ISRCs from digital music files instead of CDs
- Display release disambiguation comments
- Compatibility with new setuptools HOT 1
- Rename main branch to βmainβ HOT 2
- Windows: Could not find module 'discid.dll' 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 musicbrainz-isrcsubmit.