mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
fix delete photo command trying to print non-existant filename
This commit is contained in:
2
gam.py
2
gam.py
@@ -1552,7 +1552,7 @@ def deletePhoto(users):
|
|||||||
user = user[4:]
|
user = user[4:]
|
||||||
elif user.find('@') == -1:
|
elif user.find('@') == -1:
|
||||||
user = u'%s@%s' % (user, domain)
|
user = u'%s@%s' % (user, domain)
|
||||||
print u"Deleting photo for %s to %s (%s of %s)" % (user, filename, i, count)
|
print u"Deleting photo for %s (%s of %s)" % (user, i, count)
|
||||||
callGAPI(service=cd.users().photos(), function='delete', userKey=user)
|
callGAPI(service=cd.users().photos(), function='delete', userKey=user)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user