Skip to content

Commit

Permalink
[2251] No Ouroboros CSVs please
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Jun 6, 2024
1 parent 1f92c0c commit 79bb416
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 79bb416

Please sign in to comment.