Changeset 24386b9 in sasview for src


Ignore:
Timestamp:
Jul 15, 2015 1:19:40 PM (9 years ago)
Author:
mathieu
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:
069aae2
Parents:
9df6a03
Message:

Update version checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/gui_manager.py

    r9989a6a r24386b9  
    20482048            logging.info("Connected to www.sasview.org. Latest version: %s" 
    20492049                         % (content)) 
     2050            version_info = json.loads(content) 
    20502051        except: 
    20512052            msg = traceback.format_exc() 
    20522053            logging.info(msg) 
    20532054            logging.info("Failed to connect to www.sasview.org") 
    2054             content = "0.0.0" 
    2055  
    2056         version_info = json.loads(content) 
     2055            version_info = {"version": "0.0.0"} 
    20572056        self._process_version(version_info, standalone=event == None) 
    20582057 
     
    20692068 
    20702069        """ 
    2071         version = version_info["version"] 
    20722070        try: 
     2071            version = version_info["version"] 
    20732072            if version == "0.0.0": 
    20742073                msg = "Could not connect to the application server." 
Note: See TracChangeset for help on using the changeset viewer.