format & improve error logging
This commit is contained in:
parent
d0c78ec3ee
commit
f838a32cb5
@ -1,7 +1,7 @@
|
||||
import hashlib
|
||||
|
||||
|
||||
BLOCKSIZE = 2**10 * 128 # kb
|
||||
BLOCKSIZE = 2 ** 10 * 128 # kb
|
||||
|
||||
|
||||
def hashfile(path, hash_algo=None):
|
||||
|
@ -65,5 +65,5 @@ class IndexThread:
|
||||
try:
|
||||
self._process_root(parent)
|
||||
except Exception as e:
|
||||
self._log(Stat.INTERNALEXCEPTION, e)
|
||||
self._log(Stat.INTERNALEXCEPTION, f"{parent}: {e}")
|
||||
self.todo_queue.task_done()
|
||||
|
Loading…
x
Reference in New Issue
Block a user