Commit fab54d15 authored by Klaus-Uwe Mitterer's avatar Klaus-Uwe Mitterer

Handle KeyboardInterrupts in tweet.py

parent ea132380
#!/usr/bin/env python3
import twitools
if __name__ == "__main__":
two = twitools.twObject()
try:
text = input("> ")
except KeyboardInterrupt:
exit(0)
two.tweet(text)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment