Comments (10)
Currently we do it already
from zdict.
from zdict.
Oh... we only catch it on shell mode
from zdict.
Looks like I have something to contribute (thumbsup)
from zdict.
👍
from zdict.
👍
from zdict.
I don't get it.
How are you going to implement this feature?
This exception can happen in anywhere depends on the timing you press ^C
You can try it a little more times then you will know.
It's just like you cancel the program even before it starts.
Just like u type ipython
and press ^C
before the prompt shows up.
from zdict.
http://stackoverflow.com/questions/21120947/catching-keyboardinterrupt-in-python-during-program-shutdown
http://stackoverflow.com/questions/1187970/how-to-exit-from-python-without-traceback
http://stackoverflow.com/questions/4205317/capture-keyboardinterrupt-in-python-without-try-except
Maybe helpful. maybe
from zdict.
Can @pi314 reply my question above? I really want to know how to do it.
The pic you gave above showed the KeyboardInterrupt
happened while importing the argparse
module.
The most closed solution I can imagine is that we add a singal handler in the scripts/zdict
even before the line from zdict import zdict
but I don't think it's a good solution.
from zdict.
@M157q: Well, I was going to catch exceptions on zdict.lookup()
, but I didn't found that my screenshot shows it explode on argparse
from zdict.
Related Issues (20)
- `python setup.py test` is deprecated and will be removed in a future version
- [CircleCI] Probably no need to install testing requirements in deploy stage HOT 2
- Add "[ ~ Dependencies scanned by PyUp.io ~ ]" into READAME
- Add GitHub Code Scanning
- Change CI from Travis CI and CircleCI to GitHub Actions HOT 1
- Enhancements for #442 HOT 1
- Don't run coveralls for forked pr on CircleCI HOT 1
- [Feature Request] PIV support
- Fix iTaigi testings
- zdict only works with UTF-8 HOT 6
- Move macOS related testings from Travis CI to GitHub Actions HOT 2
- [Testings] Current daily tests should be separated as production tests HOT 1
- Docker Hub discontinuing Autobuilds on the free tier starting from June 18, 2021 HOT 2
- APC e-dictionary need fixed, endpoint moved. HOT 3
- [testings] iTaigi sometimes fails with inconsistent assert result
- Python tag in `setup.cfg` not effect actually HOT 1
- Fix NAER dict testings
- Programmatic usage
- [Feature Request] Disabling color output HOT 2
- Add more dictionaries
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 zdict.