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:
parent
2b3c5aa41e
commit
aac20aa076
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue