mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Fix if expression to be more python-idiomatic
Co-authored-by: alexzorin <alex@zor.io>
This commit is contained in:
co-authored by
alexzorin
parent
4ff6f6917f
commit
ba8ba0b19d
@@ -251,7 +251,7 @@ class _GoogleClient(object):
|
||||
"requesting a wildcard certificate, this might not work.")
|
||||
logger.debug("Error was:", exc_info=True)
|
||||
else:
|
||||
if response and len(response["rrsets"]) != 0:
|
||||
if response and response["rrsets"]:
|
||||
return response["rrsets"][0]["rrdatas"]
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user