Changeset 2849


Ignore:
Timestamp:
05/07/12 19:45:41 (2 years ago)
Author:
wehart
Message:

Additional bug fixes that were prompted by feedback from Peter Shardlow.

These fixes demonstrate that our testing of the Pyro routines is incomplete.

Location:
pyutilib.pyro/trunk/pyutilib/pyro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pyutilib.pyro/trunk/pyutilib/pyro/client.py

    r2848 r2849  
    3131            try: 
    3232                self.URI=self.ns.resolve(group+".dispatcher") 
    33                 print "Dispatcher Object URI: "+str(self.URI) 
     33                print("Dispatcher Object URI: "+str(self.URI)) 
    3434                break 
    35             except NamingError, x: 
     35            except NamingError: 
    3636                pass 
    3737            time.sleep(1) 
  • pyutilib.pyro/trunk/pyutilib/pyro/util.py

    r2831 r2849  
    3232                ns=Pyro.naming.NameServerLocator().getNS(host) 
    3333            break 
    34         except NamingError(err): 
     34        except NamingError: 
    3535            pass 
    3636        time.sleep(1) 
  • pyutilib.pyro/trunk/pyutilib/pyro/worker.py

    r2831 r2849  
    3232                print('Dispatcher Object URI:'+str(URI)) 
    3333                break 
    34             except NamingError(x): 
     34            except NamingError: 
    3535                pass 
    3636            time.sleep(1) 
     
    5252            except Queue.Empty: 
    5353                pass 
    54             except ConnectionDeniedError(str): 
     54            except ConnectionDeniedError: 
     55                x = sys.exc_info()[1] 
    5556                # this can happen if the dispatcher is overloaded.  
    5657                pass      
    57                 print("***WARNING: Connection to dispatcher server denied - message="+str) 
     58                print("***WARNING: Connection to dispatcher server denied - message="+str(x)) 
    5859                print("            A potential remedy may be to increase PYRO_MAXCONNECTIONS from its current value of "+str(Pyro.config.PYRO_MAXCONNECTIONS)) 
    5960                time.sleep(0.1) # sleep for a bit longer than normal, for obvious reasons 
Note: See TracChangeset for help on using the changeset viewer.