Changeset 3873 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Apr 4, 2019 8:56:32 AM (3 years ago)
Author:
toby
Message:

trap error if unable to delete seq files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrIO.py

    r3855 r3873  
    794794    # clean up tmp files
    795795    tmpHistIndex.clear()
    796     os.remove(GPXphase)
    797     os.remove(GPXhist)
     796    try:
     797        os.remove(GPXphase)
     798    except:
     799        print('Warning: unable to delete {}'.format(GPXphase))
     800    try:
     801        os.remove(GPXhist)
     802    except:
     803        print('Warning: unable to delete {}'.format(GPXhist))
    798804    print ('GPX file merge completed')
    799805
Note: See TracChangeset for help on using the changeset viewer.