mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
fix some issues
This commit is contained in:
parent
65cd1313f4
commit
2346f4b2fa
3 changed files with 41 additions and 3 deletions
|
@ -394,7 +394,7 @@ class PandoraBox:
|
|||
if file_size > (1024*1024*1024):
|
||||
status = "TOO BIG"
|
||||
else:
|
||||
self._log(f'scan="{full_path}]"')
|
||||
self._log(f'scan=[{full_path}]')
|
||||
res = pandora.submit_from_disk(full_path)
|
||||
time.sleep(0.1)
|
||||
loop = 0
|
||||
|
@ -422,8 +422,8 @@ class PandoraBox:
|
|||
os.mkdir(qfolder)
|
||||
shutil.copyfile(full_path, os.path.join(qfolder,file))
|
||||
except Exception as ex :
|
||||
self._log(f"Unexpected error: {ex}")
|
||||
self._log("Scan failed !")
|
||||
self._log(f"Unexpected error: {str(ex)}")
|
||||
logging.info("An exception was thrown!", exc_info=True)
|
||||
return "ERROR"
|
||||
self._update_bar(100)
|
||||
self._log(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue