KvasirSecurity/Kvasir — pull request #82 by andurin (2014-05-19 09:17:50+00:00)
Title: Fix CPE Import Backgroundtask - UnboundLocalError

It should be imported before use :)

This fixes following:
local variable 'connect_exploits' referenced before assignment

Traceback (most recent call last):
File "/opt/kvasir/web2py/gluon/restricted.py", line 220, in restricted
exec ccode in environment
File "/opt/kvasir/web2py/applications/test/controllers/exploits.py", line 264, in
File "/opt/kvasir/web2py/gluon/globals.py", line 389, in
self._caller = lambda f: f()
File "/opt/kvasir/web2py/gluon/tools.py", line 3337, in f
return action(*a, **b)
File "/opt/kvasir/web2py/applications/test/controllers/exploits.py", line 131, in connect_exploits
connect_exploits,
UnboundLocalError: local variable 'connect_exploits' referenced before assignment