BookOps-CAT / overload

BookOps toolkit
MIT License
0 stars 1 forks source link

PVF: unhandled error when previous destination does not longer exists #29

Open klinga opened 4 years ago

klinga commented 4 years ago

FTP: { "app": "overload", "asciTime": "2019-11-26 10:45:42,612", "fileName": "ftp_manager.py", "lineNo": "263", "levelName": "ERROR", "message": "Download from FTP failed: host\u003dftp.ybp.com, file on remote\u003d19901466.mrc, destination path\u003dE:/migration-invoices/19901466.mrc, transfer type\u003dbinary. Error: [Errno 2] No such file or directory: u\u0027E:/migration-invoices//19901466.mrc\u0027" } | { "app": "overload", "asciTime": "2019-11-26 10:45:42,612", "fileName": "ftp_manager.py", "lineNo": "263", "levelName": "ERROR", "message": "Download from FTP failed: host\u003dftp.ybp.com, file on remote\u003d19901466.mrc, destination path\u003dE:/migration-invoices/19901466.mrc, transfer type\u003dbinary. Error: [Errno 2] No such file or directory: u\u0027E:/migration-invoices//19901466.mrc\u0027" }

When trying to change the dst directory: { "app": "overload", "asciTime": "2019-11-26 10:45:42,612", "fileName": "ftp_manager.py", "lineNo": "263", "levelName": "ERROR", "message": "Download from FTP failed: host\u003dftp.ybp.com, file on remote\u003d19901466.mrc, destination path\u003dE:/migration-invoices/19901466.mrc, transfer type\u003dbinary. Error: [Errno 2] No such file or directory: u\u0027E:/migration-invoices//19901466.mrc\u0027" }

PVF: overload-2019-11-27 07:53:57,078-pvf_gui.py-2395-ERROR-40-Unhandled error: Traceback (most recent call last):\n File 'C:/Users/[.,.]/Documents/GitHub/overload/overload/pvf/pvf_gui.py', line 2371, in process\n self.progbar, self.current_process)\n File 'C:/Users/[...]/Documents/GitHub/overload/overload/pvf/manager.py', line 513, in run_processing\n write_marc21(fh_new, bib)\n File 'C:/Users/[...]/Documents/GitHub/overload/overload/bibs/bibs.py', line 27, in write_marc21\n writer.close()\nUnboundLocalError: local variable 'writer' referenced before assignment\n

klinga commented 4 years ago

Check other workflows (getbib, w2s) and revert silently in such instances to MY_DOCS or ask for destination