Changeset 96277b9 in sasview for sansguiframe


Ignore:
Timestamp:
Aug 9, 2012 2:52:10 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
17574ae
Parents:
3fdb68a
Message:

Added error msg on failing of loading a project file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r699df7f r96277b9  
    19021902                    return 
    19031903                elif extension == APPLICATION_STATE_EXTENSION: 
    1904                     reader.read(path) 
     1904                    try: 
     1905                        reader.read(path) 
     1906                    except: 
     1907                        msg = "DataLoader Error: Encounted Non-ASCII character" 
     1908                        msg += "\n(%s)"% sys.exc_value 
     1909                        wx.PostEvent(self, StatusEvent(status=msg,  
     1910                                                info="error", type="stop")) 
     1911                        return 
    19051912         
    19061913        style = self.__gui_style & GUIFRAME.MANAGER_ON 
Note: See TracChangeset for help on using the changeset viewer.