Changeset 178 for trunk/1001Screenshot


Ignore:
Timestamp:
05/02/05 04:57:27 (20 years ago)
Author:
Nicholas Riley
Message:

screenshot.py: Properly handle user cancellation in Panther, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/1001Screenshot/screenshot.py

    r175 r178  
    8585
    8686    execute(SCREENCAPTURE_ARGS + [pdfFile])
     87    if not os.path.exists(pdfFile):
     88        # something could have gone wrong, or user cancelled, we don't know
     89        sys.exit(0)
    8790
    8891    pdf = CGPDFDocumentCreateWithProvider(CGDataProviderCreateWithFilename(pdfFile))
Note: See TracChangeset for help on using the changeset viewer.