View difference between Paste ID: vRMcqu7d and sTU6SVd2
SHOW: | | - or go back to the newest paste.
1
web.Server Traceback (most recent call last): 
2
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'replace'
3
4
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py, line 441 in _runCallbacks
5
439          self._runningCallbacks = True
6
440          try:
7
441            self.result = callback(self.result, *args, **kw)
8
442          finally:
9
Localscallback '<bound method DeferredResource._cbChild of <twisted.web.util.DeferredResource instance at 0xa1250ac>>' 
10
self "<Deferred at 0xa117e6c current result: <twisted.python.failure.Failure <type 'exceptions.AttributeError'>>>" 
11
args '(<GET /graphs HTTP/1.1>,)' 
12
kw '{}' 
13
14
/usr/lib/python2.6/dist-packages/twisted/web/util.py, line 96 in _cbChild
15
94
16
95  def _cbChild(self, child, request):
17
96    request.render(resource.getChildForRequest(child, request))
18
97
19
Localsself '<twisted.web.util.DeferredResource instance at 0xa1250ac>' 
20
request '<GET /graphs HTTP/1.1>' 
21
child '<twisted.web._auth.wrapper.ResourceWrapper object at 0xa12506c>' 
22
23
Globalsresource "<module 'twisted.web.resource' from '/usr/lib/python2.6/dist-packages/twisted/web/resource.pyc'>" 
24
25
/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 132 in render
26
130  def render(self, resrc):
27
131    try:
28
132      body = resrc.render(self)
29
133    except UnsupportedMethod, e:
30
Localsresrc '<twisted.web._auth.wrapper.ResourceWrapper object at 0xa1255cc>' 
31
self '<GET /graphs HTTP/1.1>' 
32
33
GlobalsUnsupportedMethod "<class 'twisted.web.error.UnsupportedMethod'>" 
34
35
/usr/lib/python2.6/dist-packages/twisted/web/_auth/wrapper.py, line 188 in render
36
186        """
37
187        request.notifyFinish().addBoth(lambda ign: logout())
38
188        return super(ResourceWrapper, self).render(request)
39
189
40
Localsrequest '<GET /graphs HTTP/1.1>' 
41
self '<twisted.web._auth.wrapper.ResourceWrapper object at 0xa1255cc>' 
42
logout '<function <lambda> at 0xa12348c>' 
43
ResourceWrapper "<class 'twisted.web._auth.wrapper.ResourceWrapper'>" 
44
45
/usr/lib/python2.6/dist-packages/twisted/web/resource.py, line 210 in render
46
208      from twisted.web.error import UnsupportedMethod
47
209      raise UnsupportedMethod(getattr(self, 'allowedMethods', ()))
48
210    return m(request)
49
211
50
Localsm '<bound method GraphView.render_GET of <__main__.GraphView instance at 0xa120a4c>>' 
51
self '<__main__.GraphView instance at 0xa120a4c>' 
52
request '<GET /graphs HTTP/1.1>' 
53
54
nx_extract.py, line 219 in render_GET
55
217   fd.close()
56
218
57
219   array_excep, _ = self.build_js_array()
58
220   sqli_array, sql_count = self.build_js_array(1000, 1099)
59
Localsfd "<closed file 'graphs.tpl', mode 'r' at 0xa110548>" 
60
self '<__main__.GraphView instance at 0xa120a4c>' 
61
62
Globalsfd "<closed file 'naxsi-ui-learning.conf', mode 'r' at 0xa1103e8>" 
63
64
nx_extract.py, line 283 in build_js_array
65
281   for i in count:
66
282     total_hit += i['ex']
67
283   myarray = self.create_js_array(mydict)
68
284   return myarray, total_hit
69
Localscount '[<sqlite3.Row object at 0xb74564b0>]' 
70
i '<sqlite3.Row object at 0xb74564b0>' 
71
total_hit '50' 
72
self '<__main__.GraphView instance at 0xa120a4c>' 
73
mydict 'OrderedDict([(None, 50)])' 
74
75
nx_extract.py, line 254 in create_js_array
76
252   for i in res:
77
253
78
254     d = i.replace('/', '-')
79
255     date_begin = str(d).split('-')
80
Localsi 'None' 
81
res 'OrderedDict([(None, 50)])' 
82
83
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'replace'