#!/usr/bin/env python2
# Thomas Levine, ScraperWiki Limited

'''
Local version of ScraperWiki Utils, documentation here:
https://scraperwiki.com/docs/python/python_help_documentation/
'''

from .utils import scrape, pdftoxml, status
import utils
import sql

# Compatibility
sqlite = sql

class Error(Exception):
    """All ScraperWiki exceptions are instances of this class
    (usually via a subclass)."""
    pass

class CPUTimeExceededError(Error):
    """CPU time limit exceeded."""
    pass

#!/usr/bin/env python2
# Thomas Levine, ScraperWiki Limited

'''
Local version of ScraperWiki Utils, documentation here:
https://scraperwiki.com/docs/python/python_help_documentation/
'''

from .utils import scrape, pdftoxml, status
import utils
import sql

# Compatibility
sqlite = sql
--- 
+++ 
@@ -12,3 +12,12 @@
 
 # Compatibility
 sqlite = sql
+
+class Error(Exception):
+    """All ScraperWiki exceptions are instances of this class
+    (usually via a subclass)."""
+    pass
+
+class CPUTimeExceededError(Error):
+    """CPU time limit exceeded."""
+    pass
Add exceptions scraperwiki.CPUTimeExceededError and scraperwiki.Error.
This bring the library closer to the classic API, which provided
both these exceptions.
