◐ Shell
clean mode source ↗

Message 165145 - Python tracker

There are a lot of bare exceptions in IDLE. Here's the output of "grep -n 'except:' *.py"

AutoComplete.py:184:        except:
AutoComplete.py:209:                    except:
Debugger.py:172:                except:
Debugger.py:344:            except:
EditorWindow.py:999:            except:
ObjectBrowser.py:38:        except:
ObjectBrowser.py:100:        except:
PyShell.py:133:        except: # but debugger may not be active right now....
PyShell.py:154:        except:
PyShell.py:161:        except:
PyShell.py:176:            except:
PyShell.py:433:            except:
PyShell.py:742:        except:
PyShell.py:869:        except:
PyShell.py:1043:        except:
PyShell.py:1096:        except:
PyShell.py:1193:        except:
PyShell.py:1214:        except:
PyShell.py:1245:        except:
rpc.py:106:        except:
rpc.py:206:        except:
run.py:88:    except:
run.py:120:        except:
run.py:125:            except:
run.py:248:        except:
run.py:332:        except:
SearchEngine.py:72:            except:
StackViewer.py:66:        except:
WindowList.py:47:            except:


Slowly, these exceptions should be refined to include the exact exception being caught.