format & improve error logging

This commit is contained in:
Christian Zangl 2022-05-03 23:12:23 +02:00
parent d0c78ec3ee
commit f838a32cb5
No known key found for this signature in database
GPG Key ID: 6D468AC36E2A4B3D
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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()