Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaurin committed Nov 11, 2023
1 parent 9fbdcd4 commit aeabd55
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions rs_Assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,14 @@ def _from_config_file(self, asset_config_file: str) -> List["LiveryAsset"]:
self._top_level_assets.append(asset)

# Check if we have any duplicate basenames for downloadable assets
basenames = []
for asset in self.get_assets_with_gdrive_id():
for asset_compare in self.get_assets_with_gdrive_id():
if asset.basename == asset_compare.basename:
raise ValueError(
f"Duplicate basenames for downloadable assets found in config file: {asset.basename}"
)
basenames.append(asset.basename)
if len(basenames) != len(set(basenames)):
difference = set([x for x in basenames if basenames.count(x) > 1])
raise ValueError(
f"Duplicate basenames found in {asset_config_file}: {difference}"
)

# Wait for downloads to finish, and the do post-download processing
compress_and_checksum_futures = []
Expand Down

0 comments on commit aeabd55

Please sign in to comment.