Fix tweet ID finder
This commit is contained in:
parent
a6b8cefaa1
commit
6f5b4e4f6d
|
@ -89,9 +89,9 @@ def fish(bot, update):
|
||||||
def getTweetID(tlid, cid):
|
def getTweetID(tlid, cid):
|
||||||
try:
|
try:
|
||||||
db = dbtools.dbHelper()
|
db = dbtools.dbHelper()
|
||||||
db.executeQuery("SELECT tid FROM timelines WHERE nr = %i AND cid = %i;" % (tlid, int(cid)))
|
db.executeQuery("SELECT tid FROM timelines WHERE nr = %i AND cid = %i;" % (int(tlid), int(cid)))
|
||||||
return db.getNext()[0]
|
return db.getNext()[0]
|
||||||
except:
|
except Exception:
|
||||||
raise ValueError("No such tweet in timeline")
|
raise ValueError("No such tweet in timeline")
|
||||||
|
|
||||||
def explicitTweet(bot, update, args, reply = None):
|
def explicitTweet(bot, update, args, reply = None):
|
||||||
|
|
Loading…
Reference in a new issue