<type 'exceptions.AttributeError'>
Python 2.7.6: /usr/local/bin/python
Wed Jul 9 22:05:31 2014

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/home/whatsapp/crashlog/lib/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    556         """Runs the handler, flushes the streams, and ends the request."""
    557         try:
=>  558             protocolStatus, appStatus = self.server.handler(self)
    559         except:
    560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/home/whatsapp/crashlog/lib/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1116         try:
   1117             try:
=> 1118                 result = self.application(environ, start_response)
   1119                 try:
   1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <werkzeug.contrib.fixers.LighttpdCGIRootFix object>, environ = {'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /usr/home/whatsapp/crashlog/lib/werkzeug/contrib/fixers.py in __call__(self=<werkzeug.contrib.fixers.LighttpdCGIRootFix object>, environ={'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
     45                                    environ.get('PATH_INFO', '')
     46         environ['SCRIPT_NAME'] = ''
=>   47         return self.app(environ, start_response)
     48 
     49 
self = <werkzeug.contrib.fixers.LighttpdCGIRootFix object>, self.app = <flask.app.Flask object>, environ = {'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /usr/home/whatsapp/crashlog/lib/flask/app.py in __call__(self=<flask.app.Flask object>, environ={'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
   1697         return self.blueprints
   1698 
   1699     def __call__(self, environ, start_response):
   1700         """Shortcut for :attr:`wsgi_app`."""
=> 1701         return self.wsgi_app(environ, start_response)
self = <flask.app.Flask object>, self.wsgi_app = <bound method Flask.wsgi_app of <flask.app.Flask object>>, environ = {'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /usr/home/whatsapp/crashlog/lib/flask/app.py in wsgi_app(self=<flask.app.Flask object>, environ={'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
   1688             except Exception, e:
   1689                 response = self.make_response(self.handle_exception(e))
=> 1690             return response(environ, start_response)
   1691 
   1692     @property
response = <Response 1435 bytes [404 NOT FOUND]>, environ = {'DOCUMENT_ROOT': '/home/whatsapp/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'buyfabricsonline.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/index.html/', 'PATH_TRANSLATED': '/home/whatsapp/public_html//index.html/', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /usr/home/whatsapp/crashlog/lib/flask/ctx.py in __exit__(self=<RequestContext 'http://buyfabricsonline.com/index.html/' [GET] of crashlog.app>, exc_type=None, exc_value=None, tb=None)
    285             self.preserved = True
    286         else:
=>  287             self.pop(exc_value)
    288 
    289     def __repr__(self):
self = <RequestContext 'http://buyfabricsonline.com/index.html/' [GET] of crashlog.app>, self.pop = <bound method RequestContext.pop of <RequestCont...csonline.com/index.html/' [GET] of crashlog.app>>, exc_value = None
 /usr/home/whatsapp/crashlog/lib/flask/ctx.py in pop(self=<RequestContext 'http://buyfabricsonline.com/index.html/' [GET] of crashlog.app>, exc=None)
    255             if exc is None:
    256                 exc = sys.exc_info()[1]
=>  257             self.app.do_teardown_request(exc)
    258             clear_request = True
    259 
self = <RequestContext 'http://buyfabricsonline.com/index.html/' [GET] of crashlog.app>, self.app = <flask.app.Flask object>, self.app.do_teardown_request = <bound method Flask.do_teardown_request of <flask.app.Flask object>>, exc = None
 /usr/home/whatsapp/crashlog/lib/flask/app.py in do_teardown_request(self=<flask.app.Flask object>, exc=None)
   1585             funcs = chain(funcs, reversed(self.teardown_request_funcs[bp]))
   1586         for func in funcs:
=> 1587             rv = func(exc)
   1588         request_tearing_down.send(self, exc=exc)
   1589 
rv undefined, func = <function teardown_request>, exc = None
 /usr/home/whatsapp/crashlog/src/crashlog/app.py in teardown_request(exception=None)
     66 def teardown_request(exception):
     67     try:
=>   68         database.close()
     69     except ProgrammingError:
     70         pass
global database = <crashlog.app.Database object>, database.close = <bound method Database.close of <crashlog.app.Database object>>
 /usr/home/whatsapp/crashlog/lib/peewee.py in close(self=<crashlog.app.Database object>)
   1617             if self.deferred:
   1618                 raise Exception('Error, database not properly initialized before closing connection')
=> 1619             self._close(self.__local.conn)
   1620             self.__local.closed = True
   1621 
self = <crashlog.app.Database object>, self._close = <bound method Database._close of <crashlog.app.Database object>>, self.__local undefined

<type 'exceptions.AttributeError'>: 'thread._local' object has no attribute 'conn'
      args = ("'thread._local' object has no attribute 'conn'",)
      message = "'thread._local' object has no attribute 'conn'"