Changeset 4455 for trunk/GSASIIconstrGUI.py
- Timestamp:
- Jun 1, 2020 7:16:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r4431 r4455 38 38 import GSASIIdataGUI as G2gd 39 39 import GSASIIctrlGUI as G2G 40 import GSASIIfiles as G2fl 40 41 import GSASIIplot as G2plt 41 42 import GSASIIobj as G2obj … … 2511 2512 rd.errors = "" 2512 2513 if not rd.ContentsValidator(filename): # Report error 2513 G2f il.G2Print("Warning: File {} has a validation error".format(filename))2514 G2fl.G2Print("Warning: File {} has a validation error".format(filename)) 2514 2515 return 2515 2516 if len(rd.selections) > 1: … … 2521 2522 try: 2522 2523 flag = rd.Reader(filename) 2523 except: 2524 G2fil.G2Print("Warning: read of file {} failed".format(filename)) 2524 except Exception as msg: 2525 G2fl.G2Print("Warning: read of file {} failed\n{}".format( 2526 filename,rd.errors)) 2527 if GSASIIpath.GetConfigValue('debug'): 2528 print(msg) 2529 import traceback 2530 print (traceback.format_exc()) 2531 GSASIIpath.IPyBreak() 2525 2532 return 2526 2533
Note: See TracChangeset
for help on using the changeset viewer.