From c34797c97a31609f26518451a09f929770859516 Mon Sep 17 00:00:00 2001 From: lameskydiver Date: Sat, 31 Aug 2024 19:42:33 +0200 Subject: [PATCH] fix error when trying to modify non-existing editor dictionary --- source_code/stripplier.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source_code/stripplier.py b/source_code/stripplier.py index b1b173b..4c6f9e9 100644 --- a/source_code/stripplier.py +++ b/source_code/stripplier.py @@ -1223,7 +1223,12 @@ def stripperStrip(ent_hash,insert,replace,delete): errorWriteLog('Start to apply replace:') for r in replace: stripperReplace(ent,replace,r) - ent['editor'] = stripperEditor(ent['editor']) + #Add messages about stripplier if the ent already makes use of hammer editor + #features + try: + ent['editor'] = stripperEditor(ent['editor']) + except: + pass ent['strippered'] = {'k':'strippered','strippered':'1'} #find ents matching with match: and perform modify: on targetted ents @@ -1385,7 +1390,7 @@ def stripperApply(): # INIT # ############## -printConsole('Stripplier v2') +printConsole('Stripplier v2.0.1') printConsole('Made for Source 2 Zombie Escape (S2ZE) ') printConsole('========================================') printConsole('Instructions:')