Skip to content

Commit 677274b

Browse files
committed
Fix bug: used Py2 syntax for except.
1 parent 3c2639a commit 677274b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def delete_thing(self, thing):
314314
"""Remove a thing from the environment."""
315315
try:
316316
self.things.remove(thing)
317-
except(ValueError, e):
317+
except ValueError as e:
318318
print(e)
319319
print(" in Environment delete_thing")
320320
print(" Thing to be removed: {} at {}" .format(thing, thing.location))

0 commit comments

Comments
 (0)