Apply suggestions from code review

Co-authored-by: Ajpantuso <ajpantuso@gmail.com>
This commit is contained in:
Felix Fontein
2021-10-31 14:23:47 +01:00
committed by GitHub
parent a6c64329d3
commit 65d0154fef
2 changed files with 3 additions and 3 deletions

View File

@@ -484,7 +484,7 @@ class CRL(OpenSSLObject):
self.issuer_ordered = False
self.issuer = parse_name_field(module.params['issuer'], 'issuer')
self.issuer = [(entry[0], entry[1]) for entry in self.issuer if entry[1]]
except ValueError as exc:
except (TypeError, ValueError) as exc:
module.fail_json(msg=to_native(exc))
self.last_update = get_relative_time_option(module.params['last_update'], 'last_update')