Changeset 56681bd in sasview for guiframe/gui_manager.py


Ignore:
Timestamp:
Mar 25, 2011 12:40:35 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
8e4355e
Parents:
c3f697e
Message:

remove minor log error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    rc3f697e r56681bd  
    246246        for item in self.plugins: 
    247247            if plugin.__class__ == item.__class__: 
    248                 msg = "Plugin %s already loaded" % plugin.__class__.__name__ 
     248                msg = "Plugin %s already loaded" % plugin.sub_menu 
    249249                logging.info(msg) 
    250250                is_loaded = True     
     
    301301                name = '' 
    302302                if not toks[0] == '__init__': 
    303                      
    304303                    if toks[1] == '.py' or toks[1] == '': 
    305304                        name = toks[0] 
    306                  
     305                    #check the validity of the module name parsed 
     306                    #before trying to import it 
     307                    if name is None or name.strip() == '': 
     308                        continue 
    307309                    path = [os.path.abspath(dir)] 
    308310                    file = '' 
     
    328330                                config.printEVT(msg) 
    329331                    except: 
    330                         print sys.exc_value 
    331332                        msg = "ViewerFrame._find_plugins: %s" % sys.exc_value 
     333                        #print msg 
    332334                        logging.error(msg) 
    333335                    finally: 
Note: See TracChangeset for help on using the changeset viewer.