1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

[2251] No Ouroboros CSVs please

This commit is contained in:
David Sangrey 2024-06-06 18:16:27 -04:00
parent 1f92c0cdfb
commit 79bb416fe1
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -50,7 +50,10 @@ def check_for_fdev_updates(silent: bool = False, local: bool = False) -> None:
try:
for localfile in files_urls:
filepath = f"FDevIDs/{localfile[0]}"
shutil.copy(filepath, pathway / 'FDevIDs')
try:
shutil.copy(filepath, pathway / 'FDevIDs')
except shutil.SameFileError:
logger.info("Not replacing same file...")
fdevid_file = pathlib.Path(pathway / 'FDevIDs' / file)
with open(fdevid_file, newline='', encoding='utf-8') as f:
local_content = f.read()