fixed indentation on return statement

This commit is contained in:
byt3bl33d3r 2014-08-14 20:13:52 +02:00
parent 73e7ca2f3d
commit d632acc530
2 changed files with 5 additions and 4 deletions

View file

@ -49,12 +49,13 @@ class BeefAPI:
return self.get_sessions("offline", "ip")
def get_sessions(self, state, value):
hooks = []
try:
hooks = []
r = requests.get(self.hookurl + self.token).json()
for v in r["hooked-browsers"][state].items():
hooks.append(str(v[1][value]))
return hooks
hooks.append(v[1][value])
return hooks
except Exception, e:
print "beefapi ERROR: %s" % e