this post was submitted on 07 Mar 2024
3 points (100.0% liked)

196

19484 readers
118 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 3 years ago
MODERATORS
 
top 3 comments
sorted by: hot top controversial new old
[–] quinkin@lemmy.world 1 points 2 years ago

Throw(e)

Make your problem someone else's problem.

[–] PM_ME_VINTAGE_30S@lemmy.sdf.org 1 points 2 years ago
[–] ImplyingImplications@lemmy.ca 1 points 2 years ago

I wrote a small command line program that would crash if a keyboard interrupt was used to close it. I fixed the crash by catching the keyboard interrupt exception...but I couldn't do anything with it. The keyboard interrupt closes the program. Catching the interrupt only stopped the crash message from appearing. So my code basically looked like this.