File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ Template for new versions:
32
32
## New Features
33
33
34
34
## Fixes
35
+ - `gui/mod-manager`: gracefully handle mods with missing or broken ``info.txt`` files
35
36
36
37
## Misc Improvements
37
38
Original file line number Diff line number Diff line change @@ -524,7 +524,8 @@ function ModlistWindow:refresh_list()
524
524
local choices = {}
525
525
for idx ,mod in ipairs (scriptmanager .get_active_mods ()) do
526
526
if not include_vanilla and mod .vanilla then goto continue end
527
- local steam_id = scriptmanager .get_mod_info_metadata (mod .path , ' STEAM_FILE_ID' ).STEAM_FILE_ID
527
+ local metadata = scriptmanager .get_mod_info_metadata (mod .path , ' STEAM_FILE_ID' )
528
+ local steam_id = metadata and metadata .STEAM_FILE_ID or nil
528
529
local url = steam_id and (' : https://steamcommunity.com/sharedfiles/filedetails/?id=%s' ):format (steam_id ) or ' '
529
530
table.insert (choices , {
530
531
text = {
You can’t perform that action at this time.
0 commit comments