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