Derive exception classes from Exception
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index a0492e6..7d2ca52 100755
--- a/Lib/tabnanny.py
+++ b/Lib/tabnanny.py
@@ -47,7 +47,7 @@
     for arg in args:
         check(arg)
 
-class NannyNag:
+class NannyNag(Exception):
     def __init__(self, lineno, msg, line):
         self.lineno, self.msg, self.line = lineno, msg, line
     def get_lineno(self):
diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py
index 7b02c41..2706047 100644
--- a/Lib/xdrlib.py
+++ b/Lib/xdrlib.py
@@ -13,7 +13,7 @@
 __all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
 
 # exceptions
-class Error:
+class Error(Exception):
     """Exception class for this module. Use:
 
     except xdrlib.Error, var: