We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0ce6f4 + d553391 commit 2ef8bafCopy full SHA for 2ef8baf
tweeter.py
@@ -12,13 +12,21 @@ def tweetthis(type):
12
iftype=="text":
13
print"Enter your tweet "+user.name
14
tweet=raw_input()
15
-api.update_status(tweet)
+try:
16
+api.update_status(tweet)
17
+exceptExceptionase:
18
+printe
19
+return
20
eliftype=="pic":
21
print"Enter pic path "+user.name
22
pic=os.path.abspath(raw_input())
23
print"Enter status "+user.name
24
title=raw_input()
-api.update_with_media(pic, status=title)
25
26
+api.update_with_media(pic, status=title)
27
28
29
30
31
print"\n\nDONE!!"
32
0 commit comments