Skip to content

Commit 160d925

Browse files
authored
Merge pull request #31 from ThaPwned/master
Fixed an UnboundLocalError
2 parents 37bd81a + 92d80ea commit 160d925

File tree

1 file changed

+2
-1
lines changed
  • addons/source-python/plugins/es_emulator/eventscripts/_libs/python

1 file changed

+2
-1
lines changed

addons/source-python/plugins/es_emulator/eventscripts/_libs/python/playerlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def __getitem__(self, name):
247247
e = None
248248
try:
249249
return_val = self.get(name)
250-
except KeyError as e:
250+
except KeyError as ex:
251+
e = ex
251252
return_val = None
252253
if name in _callable_attributes: # If the item is also callable we need ReturnValue to make it callable
253254
return_val = self.ReturnValue(return_val)

0 commit comments

Comments
 (0)