Skip to content

Instantly share code, notes, and snippets.

@megies
Created December 1, 2016 13:07
Show Gist options
  • Save megies/6e28df8c061669165c7d8c85f9d3ee42 to your computer and use it in GitHub Desktop.
Save megies/6e28df8c061669165c7d8c85f9d3ee42 to your computer and use it in GitHub Desktop.
BaseHTTPServer.py
330: except socket.timeout, e:
ConfigParser.py
667: except KeyError, e:
SimpleXMLRPCServer.py
265: except Fault, fault:
365: except Fault, fault:
508: except Exception, e: # This should only happen if the module is buggy
_strptime.py
318: except KeyError, err:
asynchat.py
116: except socket.error, why:
asyncore.py
115: except socket.error, e:
146: except select.error, err:
193: except select.error, err:
251: except socket.error, err:
376: except socket.error, why:
395: except socket.error, why:
410: except socket.error, why:
582: except OSError, x:
base64.py
76: except binascii.Error, msg:
338: except getopt.error, msg:
bsddb/dbtables.py
348: except db.DBError, dberror:
432: except db.DBError, dberror:
509: except db.DBError, dberror:
572: except db.DBError, dberror:
612: except db.DBError, dberror:
616: except db.DBError, dberror:
639: except db.DBError, dberror:
750: except db.DBError, dberror:
770: except db.DBError, dberror:
840: except db.DBError, dberror:
cgi.py
979: except os.error, msg:
codecs.py
16:except ImportError, why:
493: except UnicodeDecodeError, exc:
codeop.py
83: except SyntaxError, err:
88: except SyntaxError, err1:
93: except SyntaxError, err2:
compileall.py
100: except py_compile.PyCompileError,err:
105: except IOError, e:
156: except getopt.error, msg:
compiler/pycodegen.py
235: except AssertionError, msg:
contextlib.py
37: except StopIteration, exc:
csv.py
53: except TypeError, e:
ctypes/macholib/dyld.py
148: except ValueError, e:
ctypes/util.py
103: except OSError, e:
dis.py
39: except TypeError, msg:
distutils/bcppcompiler.py
114: except DistutilsExecError, msg:
138: except DistutilsExecError, msg:
163: except DistutilsExecError, msg:
297: except DistutilsExecError, msg:
390: except DistutilsExecError, msg:
distutils/command/register.py
301: except urllib2.HTTPError, e:
305: except urllib2.URLError, e:
distutils/command/upload.py
181: except socket.error, e:
184: except HTTPError, e:
distutils/core.py
112: except DistutilsSetupError, msg:
138: except DistutilsArgError, msg:
distutils/cygwinccompiler.py
159: except DistutilsExecError, msg:
165: except DistutilsExecError, msg:
395: except IOError, exc:
distutils/dir_util.py
73: except OSError, exc:
distutils/dist.py
418: except ValueError, msg:
524: except DistutilsModuleError, msg:
900: except ValueError, msg:
distutils/emxccompiler.py
82: except DistutilsExecError, msg:
88: except DistutilsExecError, msg:
280: except IOError, exc:
distutils/fancy_getopt.py
258: except getopt.error, msg:
distutils/msvc9compiler.py
507: except DistutilsExecError, msg:
534: except DistutilsExecError, msg:
547: except DistutilsExecError, msg:
572: except DistutilsExecError, msg:
653: except DistutilsExecError, msg:
668: except DistutilsExecError, msg:
distutils/msvccompiler.py
387: except DistutilsExecError, msg:
416: except DistutilsExecError, msg:
430: except DistutilsExecError, msg:
456: except DistutilsExecError, msg:
535: except DistutilsExecError, msg:
distutils/spawn.py
74: except OSError, exc:
97: except OSError, exc:
151: except OSError, e:
168: except OSError, exc:
distutils/unixccompiler.py
112: except DistutilsExecError, msg:
123: except DistutilsExecError, msg:
147: except DistutilsExecError, msg:
201: except DistutilsExecError, msg:
distutils/util.py
209: except KeyError, var:
doctest.py
1718: ... except UnexpectedException, failure:
1746: ... except DocTestFailure, failure:
2257: ... except UnexpectedException, failure:
2286: ... except DocTestFailure, failure:
email/feedparser.py
34:# except controls, SP, and ":".
encodings/uu_codec.py
85: except binascii.Error, v:
filecmp.py
150: except os.error, why:
155: except os.error, why:
ftplib.py
288: except socket.error, err:
556: except error_perm, msg:
getpass.py
50: except EnvironmentError, e:
75: except termios.error, e:
hotshot/stones.py
21: except IOError, e:
htmllib.py
471: except IOError, msg:
httplib.py
1216: except BadStatusLine, e:
imaplib.py
911: except self.abort, val:
913: except self.error, val:
1018: except self.abort, val:
1442: except getopt.error, val:
json/tool.py
31: except ValueError, e:
lib-tk/Tkinter.py
1538: except SystemExit, msg:
lib2to3/fixes/fix_except.py
5:- "except E, T:" where T is a name:
9:- "except E, T:" where T is not a name, tuple or list:
17:- "except E, T:" where T is a tuple or list literal:
lib2to3/main.py
93: except os.error, err:
97: except os.error, err:
lib2to3/pgen2/conv.py
63: except IOError, err:
114: except IOError, err:
lib2to3/pgen2/driver.py
126: except IOError, e:
lib2to3/tests/data/py2_test_grammar.py
560: except AssertionError, e:
637: except RuntimeError, msg: pass
lib2to3/tests/pytree_idempotency.py
66: except pgen2.parse.ParseError, err:
lib2to3/tests/test_fixers.py
584: except Foo, e:
597: except Foo,e:
613: except ImportError, e:
645: except Exception, [a, b]:
660: except Exception, d[5]:
675: except Exception, a.foo:
705: except Exception, a:
723: except Exception, a:
749: except TypeError, b:
751: except Exception, a:
770: except TypeError, e:
782: except TypeError, e: pass
792: except TypeError, e: pass
801: except TypeError, e: pass
lib2to3/tests/test_parser.py
131: except E, N:
mailbox.py
299: except OSError, e:
319: except OSError, e:
486: except OSError, e:
491: except OSError, e:
572: except IOError, e:
694: except OSError, e:
971: except IOError, e:
985: except IOError, e:
1011: except IOError, e:
1038: except IOError, e:
1058: except IOError, e:
1978: except IOError, e:
1988: except IOError, e:
2001: except OSError, e:
mhlib.py
377: except Error, msg:
414: except Error, msg:
478: except os.error, msg:
996: except Error, msg:
mimetypes.py
578: except getopt.error, msg:
modulefinder.py
343: except ImportError, msg:
354: except ImportError, msg:
621: except getopt.error, msg:
multiprocessing/connection.py
234: except WindowsError, e:
309: except socket.error, e:
366: except WindowsError, e:
392: except WindowsError, e:
multiprocessing/forking.py
172: except OSError, e:
multiprocessing/managers.py
214: except Exception, e:
254: except Exception, e:
289: except Exception, e:
291: except Exception, e:
809: except Exception, e:
827: except Exception, e:
multiprocessing/pool.py
114: except Exception, e:
multiprocessing/process.py
262: except SystemExit, e:
multiprocessing/queues.py
273: except Exception, e:
multiprocessing/util.py
158: except Exception, e:
nntplib.py
136: except NNTPTemporaryError, e:
os.py
151: except OSError, e:
279: except error, err:
383: except error, e:
pdb.py
378: except ValueError, msg:
708: except ValueError, e:
pickle.py
865: except _Stop, stopinst:
1067: except TypeError, err:
pkgutil.py
543: except IOError, msg:
platform.py
510: except os.error,why:
513: except IOError,why:
poplib.py
260: except error_proto, val:
351: except socket.error, msg:
405: except error_proto, val:
pstats.py
626: except IOError, args:
pty.py
59: except IOError, msg:
py_compile.py
114: except Exception,err:
pydoc.py
2074: except ErrorDuringImport, value:
2378: except ErrorDuringImport, value:
quopri.py
197: except getopt.error, msg:
221: except IOError, msg:
random.py
139: except ValueError, e:
re.py
250: except error, v:
272: except error, v:
rexec.py
557: except IOError, msg:
572: except SystemExit, n:
580: except SystemExit, n:
runpy.py
115: except ImportError, e:
sgmllib.py
538: except IOError, msg:
shutil.py
104: except OSError, why:
195: except Error, err:
197: except EnvironmentError, why:
201: except OSError, why:
238: except os.error, err:
251: except os.error, err:
site-packages/future/backports/email/feedparser.py
40:# except controls, SP, and ":".
site-packages/PyQt5/uic/port_v2/invoke.py
36: except IOError, e:
39: except SyntaxError, e:
42: except NoSuchWidgetError, e:
45: except Exception, e:
site-packages/PyQt5/uic/port_v2/load_plugin.py
38: except Exception, e:
smtpd.py
123: except socket.error, err:
370: except smtplib.SMTPRecipientsRefused, e:
474: except getopt.error, e:
547: except OSError, e:
socket.py
356: except error, e:
385: except error, e:
438: except error, e:
452: except error, e:
481: except error, e:
subprocess.py
264:except OSError, e:
960: except pywintypes.error, e:
1472: except select.error, e:
1521: except select.error, e:
1605: except OSError, e:
sysconfig.py
142: except KeyError, var:
293: except IOError, e:
304: except IOError, e:
tabnanny.py
46: except getopt.error, msg:
98: except IOError, msg:
108: except tokenize.TokenError, msg:
112: except IndentationError, msg:
116: except NannyNag, nag:
tarfile.py
1600: except HeaderError, e:
2092: except ExtractError, e:
2117: except EnvironmentError, e:
2125: except ExtractError, e:
2223: except EnvironmentError, e:
2312: except EnvironmentError, e:
2321: except EnvironmentError, e:
2331: except EnvironmentError, e:
2357: except EOFHeaderError, e:
2362: except InvalidHeaderError, e:
2372: except TruncatedHeaderError, e:
2375: except SubsequentHeaderError, e:
tempfile.py
247: except OSError, e:
341: except OSError, e:
timeit.py
268: except getopt.error, err:
toaiff.py
93: except IOError, msg:
token.py
95: except IOError, err:
115: except IOError, err:
132: except IOError, err:
trace.py
354: except IOError, err:
362: except IOError, err:
442: except IOError, err:
673: except getopt.error, msg:
808: except IOError, err:
unittest/case.py
770: except TypeError, e:
772: except AttributeError, e:
777: except TypeError, e:
779: except AttributeError, e:
unittest/loader.py
72: except Exception, e:
292: except Exception, e:
unittest/main.py
150: except getopt.error, msg:
unittest/suite.py
183: except Exception, e:
242: except Exception, e:
urllib.py
216: except socket.error, msg:
482: except OSError, e:
907: except ftplib.error_perm, reason:
919: except ftplib.error_perm, reason:
urllib2.py
1196: except socket.error, err: # XXX what error?
1374: except OSError, msg:
1404: except socket.error, msg:
1430: except ftplib.all_errors, msg:
uu.py
144: except binascii.Error, v:
warnings.py
129: except _OptionError, msg:
webbrowser.py
686: except getopt.error, msg:
xdrlib.py
20: except xdrlib.Error, var:
xml/etree/ElementTree.py
1652: except self._error, v:
1664: except self._error, v:
xml/sax/__init__.py
82: except ImportError,e:
xml/sax/expatreader.py
214: except expat.error, e:
xmllib.py
900: except IOError, msg:
918: except Error, msg:
xmlrpclib.py
1284: except socket.error, e:
1655: except Error, v:
zipfile.py
1463: except py_compile.PyCompileError,err:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment