@@ -257,7 +257,7 @@ async def process_control(self, msg):
257257 idents , msg = self .session .feed_identities (msg , copy = False )
258258 try :
259259 msg = self .session .deserialize (msg , content = True , copy = False )
260- except :
260+ except Exception :
261261 self .log .error ("Invalid Control Message" , exc_info = True )
262262 return
263263
@@ -309,7 +309,7 @@ async def dispatch_shell(self, msg):
309309 idents , msg = self .session .feed_identities (msg , copy = False )
310310 try :
311311 msg = self .session .deserialize (msg , content = True , copy = False )
312- except :
312+ except Exception :
313313 self .log .error ("Invalid Message" , exc_info = True )
314314 return
315315
@@ -624,7 +624,7 @@ async def execute_request(self, stream, ident, parent):
624624 store_history = content .get ('store_history' , not silent )
625625 user_expressions = content .get ('user_expressions' , {})
626626 allow_stdin = content .get ('allow_stdin' , False )
627- except :
627+ except Exception :
628628 self .log .error ("Got bad msg: " )
629629 self .log .error ("%s" , parent )
630630 return
@@ -847,7 +847,7 @@ async def apply_request(self, stream, ident, parent):
847847 content = parent ['content' ]
848848 bufs = parent ['buffers' ]
849849 msg_id = parent ['header' ]['msg_id' ]
850- except :
850+ except Exception :
851851 self .log .error ("Got bad msg: %s" , parent , exc_info = True )
852852 return
853853
0 commit comments