@@ -50,7 +50,9 @@ def handle_interrupt(self):
5050 def handle_socket_end (self ):
5151 """Handle a socket closing, which is pretty normal.
5252 """
53- self ._session_handler .ui ().say ("Connection to the debugger has been closed" )
53+ self ._session_handler .ui ().say (
54+ "Connection to the debugger has been closed"
55+ )
5456 self ._session_handler .stop ()
5557
5658 def handle_vim_error (self , e ):
@@ -85,7 +87,7 @@ def handle(self, e):
8587 elif isinstance (e , error .UserInterrupt ):
8688 try :
8789 self .handle_interrupt ()
88- except :
90+ except Exception as e :
8991 pass
9092 elif isinstance (e , self .readable_errors ):
9193 self .handle_readable_error (e )
@@ -97,12 +99,10 @@ def handle(self, e):
9799 print ("Keyboard interrupt - debugging session cancelled" )
98100 try :
99101 self ._session_handler .stop ()
100- except :
102+ except Exception as e :
101103 pass
102104 else :
103105 self .handle_general_exception ()
104- #elif isinstance(e,vim.error):
105- # self.handle_vim_error(e)
106106
107107
108108class Keymapper :
@@ -259,7 +259,9 @@ def _create_remote(f):
259259 elif remote .endswith ('/' ) and not local .endswith ('/' ):
260260 remote = remote [:- 1 ]
261261 ret = ret .replace (local , remote , 1 )
262- # replace remaining local separators with URL '/' separators
262+ """
263+ replace remaining local separators with URL '/' separators
264+ """
263265 ret = ret .replace ('\\ ' , '/' )
264266 break
265267
@@ -350,5 +352,5 @@ def probe():
350352 try :
351353 vim .eval ("getchar(0)" )
352354 time .sleep (0.1 )
353- except : # vim.error
355+ except vim .error as e :
354356 raise error .UserInterrupt ()
0 commit comments