Remove cherrypy version check

Dependencies should be handled by installation, not at runtime.
This commit is contained in:
Jim Paris 2013-02-25 15:12:29 -05:00
parent dd7594b5fa
commit f396e3934c

View File

@ -15,12 +15,6 @@ import decorator
import traceback
import psutil
try:
cherrypy.tools.json_out
except: # pragma: no cover
sys.stderr.write("Cherrypy 3.2+ required\n")
sys.exit(1)
class NilmApp(object):
def __init__(self, db):
self.db = db
@ -191,7 +185,6 @@ class Stream(NilmApp):
# /stream/insert?path=/newton/prep
@cherrypy.expose
@cherrypy.tools.json_out()
#@cherrypy.tools.disable_prb()
def insert(self, path, start, end):
"""
Insert new data into the database. Provide textual data