XZise created this task. XZise added a subscriber: XZise. XZise added projects: pywikibot-core, Easy. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION The flickrripper script uses default values for all parameters which is not always sensible. For example the following function can't work when not both parameters are given:
``` def getPhoto(flickr=None, photo_id=''): """ Get the photo info and the photo sizes so we can use these later on.
TODO: Add exception handling
""" while True: try: photoInfo = flickr.photos_getInfo(photo_id=photo_id) # xml.etree.ElementTree.dump(photoInfo) photoSizes = flickr.photos_getSizes(photo_id=photo_id) # xml.etree.ElementTree.dump(photoSizes) return photoInfo, photoSizes except flickrapi.exceptions.FlickrError: pywikibot.output(u'Flickr api problem, sleeping') time.sleep(30) ```
TASK DETAIL https://phabricator.wikimedia.org/T93098
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: pywikipedia-bugs, Aklapper, XZise, jayvdb