Properly handle deleted account

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-27 22:16:29 +01:00
parent 9c953a0118
commit 8c00ece7bd

View file

@ -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