Skip to content

Commit

Permalink
fix error when trying to modify non-existing editor dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
lameskydiver committed Aug 31, 2024
1 parent 4ca2409 commit c34797c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source_code/stripplier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1385,7 +1390,7 @@ def stripperApply():
# INIT #
##############

printConsole('Stripplier v2')
printConsole('Stripplier v2.0.1')
printConsole('Made for Source 2 Zombie Escape (S2ZE) <https://github.com/Source2ZE>')
printConsole('========================================')
printConsole('Instructions:')
Expand Down

0 comments on commit c34797c

Please sign in to comment.