fix: cast capture dir to string for redis

pull/251/head
Raphaël Vinot 2021-08-28 20:36:50 +02:00
parent 324736f62c
commit 1bff8f1529
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class Lookyloo():
capture_dir = self._captures_index[capture_uuid].capture_dir
if capture_dir.exists():
return capture_dir
self.redis.delete(capture_dir)
self.redis.delete(str(capture_dir))
self._captures_index.pop(capture_uuid)
capture_dir = self.redis.hget('lookup_dirs', capture_uuid)
if capture_dir and not Path(capture_dir).exists():