1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

removed unused exception vars

This commit is contained in:
Brian Coca 2015-10-21 13:25:24 -04:00
parent 2b3c5aa41e
commit aac20aa076

View file

@ -360,7 +360,7 @@ class Ec2Inventory(object):
self.pattern_include = re.compile(pattern_include)
else:
self.pattern_include = None
except configparser.NoOptionError as e:
except configparser.NoOptionError:
self.pattern_include = None
# Do we need to exclude hosts that match a pattern?
@ -370,7 +370,7 @@ class Ec2Inventory(object):
self.pattern_exclude = re.compile(pattern_exclude)
else:
self.pattern_exclude = None
except configparser.NoOptionError as e:
except configparser.NoOptionError:
self.pattern_exclude = None
# Instance filters (see boto and EC2 API docs). Ignore invalid filters.