ValueError
Python 2.4.5: /usr/bin/python2.4
Tue Dec 12 09:09:10 2017

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

 /internet/toolkit/python/flup/server/scgi_base.py in run(self=<flup.server.scgi_base.Request object>)
  181 
  182         try:
  183             self._conn.server.handler(self)
  184         except:
  185             self.logger.exception('Exception caught from handler')
self = <flup.server.scgi_base.Request object>, self._conn = <flup.server.scgi_base.Connection object>, self._conn.server = <flup.server.scgi_fork.WSGIServer object>, self._conn.server.handler = <bound method WSGIServer.handler of <flup.server.scgi_fork.WSGIServer object>>
 /internet/toolkit/python/flup/server/scgi_base.py in handler(self=<flup.server.scgi_fork.WSGIServer object>, request=<flup.server.scgi_base.Request object>)
  427             self._appLock.acquire()
  428         try:
  429             result = self.application(environ, start_response)
  430             try:
  431                 for data in result:
result = None, self = <flup.server.scgi_fork.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/internet/hosts/www.hackermojo.com/html', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'hackermojo.com', 'HTTP_IF_MODIFIED_SINCE': 'Fri, 20 Oct 2017 06:39:24 GMT', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/mt-static/archives/', 'QUERY_STRING': 'ABTest=recengines,bottom&page=1', 'REMOTE_ADDR': '54.221.76.68', ...}, start_response = <function start_response>
 /internet/appserv/DjangoTrunk/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/internet/hosts/www.hackermojo.com/html', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'hackermojo.com', 'HTTP_IF_MODIFIED_SINCE': 'Fri, 20 Oct 2017 06:39:24 GMT', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': '/mt-static/archives/', 'QUERY_STRING': 'ABTest=recengines,bottom&page=1', 'REMOTE_ADDR': '54.221.76.68', ...}, start_response=<function start_response>)
  187         try:
  188             request = WSGIRequest(environ)
  189             response = self.get_response(request)
  190 
  191             # Apply response middleware
response undefined, self = <django.core.handlers.wsgi.WSGIHandler object>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<MultiValueDict: {'ABTest': ['r...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
 /internet/appserv/DjangoTrunk/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<MultiValueDict: {'ABTest': ['r...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
   57         # Apply request middleware
   58         for middleware_method in self._request_middleware:
   59             response = middleware_method(request)
   60             if response:
   61                 return response
response = None, middleware_method = <bound method ABTestResultsMiddleware.process_re...sting.middleware.ABTestResultsMiddleware object>>, request = <WSGIRequest GET:<MultiValueDict: {'ABTest': ['r...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
 /internet/hosts/www.hackermojo.com/hm/apps/abtesting/middleware.py in process_request(self=<apps.abtesting.middleware.ABTestResultsMiddleware object>, request=<WSGIRequest GET:<MultiValueDict: {'ABTest': ['r...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
    5         if request.GET.has_key('ABTest'):
    6             abtest, scenario = request.GET['ABTest'].split(',')
    7             mgr = ABTest.objects
    8             mgr.record_event( abtest, scenario )
    9 
mgr = <apps.abtesting.models.ABTestManager object>, mgr.record_event = <bound method ABTestManager.record_event of <apps.abtesting.models.ABTestManager object>>, abtest = 'recengines', scenario = 'bottom'
 /internet/hosts/www.hackermojo.com/hm/apps/abtesting/models.py in record_event(self=<apps.abtesting.models.ABTestManager object>, abtest_slug='recengines', scenario_slug='bottom')
   50             self._cache.set( scenario_key, '0' )
   51 
   52         self._cache.incr( scenario_key ) # for want of this call, we cannot use a generic django cache
   53 
   54         scenarios_key =  self._get_scenarios_key( abtest_slug )
self = <apps.abtesting.models.ABTestManager object>, self._cache = <memcache.Client instance>, self._cache.incr = <bound method Client.incr of <memcache.Client instance>>, scenario_key = 'abtest:recengines:bottom'
 /internet/toolkit/python/memcache.py in incr(self=<memcache.Client instance>, key='abtest:recengines:bottom', delta=1)
  201         @rtype: int
  202         """
  203         return self._incrdecr("incr", key, delta)
  204 
  205     def decr(self, key, delta=1):
self = <memcache.Client instance>, self._incrdecr = <bound method Client._incrdecr of <memcache.Client instance>>, key = 'abtest:recengines:bottom', delta = 1
 /internet/toolkit/python/memcache.py in _incrdecr(self=<memcache.Client instance>, cmd='incr abtest:recengines:bottom 1', key='abtest:recengines:bottom', delta=1)
  224             server.send_cmd(cmd)
  225             line = server.readline()
  226             return int(line)
  227         except socket.error, msg:
  228             server.mark_dead(msg[1])
builtin int = <type 'int'>, line = 'STORED'

ValueError: invalid literal for int(): STORED
      args = ('invalid literal for int(): STORED',)