1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-07-01 07:29:29 +00:00

Test for key instead of catching KeyError

This commit is contained in:
Mike Naberezny 2012-01-05 20:12:51 -08:00
parent 7603c84e38
commit f06e70703f

View File

@ -635,10 +635,8 @@ class Monitor(cmd.Cmd):
if args == '':
return self.help_delete_label()
try:
if args in self._address_parser.labels:
del self._address_parser.labels[args]
except KeyError:
pass
def do_width(self, args):
if args != '':