fix: Exception if there are no lookyloo-specific settings

pull/526/head
Raphaël Vinot 2022-09-23 13:50:51 +02:00
parent 86f3c5638e
commit b6428977b7
1 changed files with 2 additions and 1 deletions

View File

@ -495,7 +495,8 @@ class Lookyloo():
p = self.redis.pipeline()
p.sadd('to_capture', perma_uuid)
p.hset(perma_uuid, mapping=query) # This will add the remaining entries that are lookyloo specific
if query:
p.hset(perma_uuid, mapping=query) # This will add the remaining entries that are lookyloo specific
p.zincrby('queues', 1, f'{source}|{authenticated}|{user}')
p.set(f'{perma_uuid}_mgmt', f'{source}|{authenticated}|{user}')
p.execute()