Changeset fa81e94 in sasview for src/sas/sasgui/guiframe/proxy.py


Ignore:
Timestamp:
Nov 15, 2017 2:33:09 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
d4881f6a
Parents:
7c487846
Message:

Initial commit of the P(r) inversion perspective.
Code merged from Jeff Krzywon's ESS_GUI_Pr branch.
Also, minor 2to3 mods to sascalc/sasgui to enble error free setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/proxy.py

    ra1b8fee rfa81e94  
    127127            logger.debug("Trying Direct connection to %s..."%self.url) 
    128128            response = urllib2.urlopen(req, timeout=self.timeout) 
    129         except Exception, e: 
     129        except (Exception, e): 
    130130            logger.debug("Failed!") 
    131131            logger.debug(e) 
     
    134134                self._set_proxy() 
    135135                response = urllib2.urlopen(req, timeout=self.timeout) 
    136             except Exception, e: 
     136            except (Exception, e): 
    137137                logger.debug("Failed!") 
    138138                logger.debug(e) 
     
    144144                        self._set_proxy(proxy) 
    145145                        response = urllib2.urlopen(req, timeout=self.timeout) 
    146                     except Exception, e: 
     146                    except (Exception, e): 
    147147                        logger.debug("Failed!") 
    148148                        logger.debug(e) 
Note: See TracChangeset for help on using the changeset viewer.