This is an archived forum post. The information may be outdated. Contact us if you have any questions.
tries = 0 success = False while not success: tries += 1 try: call the API success = True catch (pdfcrowd.Error why): if tries == 5: some serious error, log or re-throw the exception else: sleep(1 or 2 seconds)