[bugfix] Versions that doesn't have "CustomLevels" folder causes error when installing a playlist

This commit is contained in:
MathieuG-P
2023-12-04 16:26:37 +01:00
parent 8dc4b8ffbe
commit e9b4ef39a3
@@ -159,7 +159,10 @@ export class LocalPlaylistsManagerService {
await this.installBPListFile(playlistPath, version);
const versionMapsFolder = await this.maps.getMapsFolderPath(version);
const realDestMapsFolder = await realpath(versionMapsFolder);
const realDestMapsFolder = await realpath(versionMapsFolder).catch(e => {
log.error(e);
return versionMapsFolder;
});
if(realSourceMapsFolder === realDestMapsFolder) { continue; }