Properly handle deleted account
This commit is contained in:
parent
9c953a0118
commit
8c00ece7bd
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ def getFollowers(db=dbtools.dbHelper(), two=twitools.twObject(), firstrun=False)
|
|||
if follower not in new and dbtools.fillerfilter.followerFilter(follower, False):
|
||||
db.executeQuery("UPDATE followers SET `until` = %i WHERE `id` = '%s' AND `until` = 0" % (int(time.time()), str(follower)))
|
||||
db.commit()
|
||||
print("Lost follower: %s" % twitools.getNameByID(follower))
|
||||
try:
|
||||
lostname = twitools.getNameByID(follower)
|
||||
except:
|
||||
lostname = "Disabled account"
|
||||
print("Lost follower: %s" % lostname)
|
||||
lost += 1
|
||||
|
||||
return gained, lost
|
||||
|
|
Loading…
Reference in a new issue