Merge branch 'issue/cannot_move_files' into main
This commit is contained in:
commit
12446bb04f
2
main.py
2
main.py
|
|
@ -87,6 +87,6 @@ if os.path.isdir(config['download_folder']):
|
||||||
config['download_folder'] if config['download_folder'].endswith('/') else config['download_folder'] + "/"
|
config['download_folder'] if config['download_folder'].endswith('/') else config['download_folder'] + "/"
|
||||||
for n in newspaper_downloaded:
|
for n in newspaper_downloaded:
|
||||||
try:
|
try:
|
||||||
shutil.move(dir_path + 'tmp/' + n, download_folder + n)
|
shutil.move(dir_path + 'tmp/' + n, download_folder)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Could not move file to download folder \"{download_folder}\"\n{e}", exc_info=True)
|
logging.error(f"Could not move file to download folder \"{download_folder}\"\n{e}", exc_info=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue