🐛 bug fix: cannot move files

This commit is contained in:
Marc Koch 2021-09-01 12:42:35 +02:00
parent 6b7dcda8d7
commit b8b2bf7dd7
1 changed files with 1 additions and 1 deletions

View File

@ -87,6 +87,6 @@ if os.path.isdir(config['download_folder']):
config['download_folder'] if config['download_folder'].endswith('/') else config['download_folder'] + "/"
for n in newspaper_downloaded:
try:
shutil.move(dir_path + 'tmp/' + n, download_folder + n)
shutil.move(dir_path + 'tmp/' + n, download_folder)
except Exception as e:
logging.error(f"Could not move file to download folder \"{download_folder}\"\n{e}", exc_info=True)