/source/Python/FileDownload/HTMLParsing/Errors.py

https://github.com/alexdgarland/Weather_Analysis
Python | 11 lines | 3 code | 4 blank | 4 comment | 0 complexity | 667b8c76a3247957b8eedcfe928fe98e MD5 | raw file
  1. #!/usr/bin/python
  2. class BadHTMLError(Exception):
  3. """
  4. Custom exception type for badly-formed HTML.
  5. """
  6. def __init__(self, message):
  7. super(type(self), self).__init__("Badly-formed HTML - " + message)