Show
Ignore:
Timestamp:
04/13/05 16:12:56 (7 years ago)
Author:
mj
Message:

Deal with unexpected exceptions during auto connect; don't leave the WingDBG package in a broken state.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • WingDBG/trunk/WingDBG/__init__.py

    r79 r86  
    1313    import sys 
    1414    import WingDBG 
     15    from ZODB.POSException import ConflictError 
    1516    from zLOG import WARNING, ERROR, INFO, LOG 
    1617     
     
    2728        try: 
    2829            wds.startDebugger() 
    29         except WingDBG.CannotStartDebugger: 
     30        except ConflictError: 
     31            raise 
     32        except: 
    3033            LOG(PACKAGE_NAME, ERROR, 'Could not start Wing IDE debugger', 
    3134                error=sys.exc_info()) 
     
    3538            try: 
    3639                wds.connectIDE() 
     40            except ConflictError: 
     41                raise 
    3742            except WingDBG.IDEConnectionTimeOut: 
    3843                LOG(PACKAGE_NAME, WARNING,  
    3944                    'Could not immediatly connect to IDE',  
    4045                    error=sys.exc_info()) 
     46            except: 
     47                LOG(PACKAGE_NAME, ERROR, 'Could not connect to IDE', 
     48                    error=sys.exc_info()) 
     49                return 
    4150             
    4251            if not wds.isConnected():