From fa9eaade0f7c2b5a4dd135ccc3fd5894ccf48383 Mon Sep 17 00:00:00 2001 From: snoutie <71790678+SnoutBug@users.noreply.github.com> Date: Sat, 21 May 2022 18:58:02 +0200 Subject: [PATCH] Add files via upload --- auto_update.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/auto_update.py b/auto_update.py index 8399899..a3b9b0d 100644 --- a/auto_update.py +++ b/auto_update.py @@ -85,8 +85,11 @@ def md5(fname): # texture missing or changed try: for mod in repodb['mods']: - mod_id = str(repodb['mods'][mod]['modData'].get('resource_id')) - mod_title = str(repodb['mods'][mod]['modData'].get('title')) + try: + mod_id = str(repodb['mods'][mod]['modData'].get('resource_id')) + mod_title = str(repodb['mods'][mod]['modData'].get('title')) + except: + continue if mod_id in tags: print('Verifying ' + mod_title) hash_url = 'https://github.com/SnoutBug/BeamNG_terrainMaterialCache/releases/download/' + mod_id + '/md5.txt'