1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-03 08:52:55 +00:00

batch 1 - update Python idiom to 3.7 using pyupgrade (#11341)

* batch 1 - update Python idiom to 3.7 using pyupgrade

* add changelog frag

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-12-31 04:15:24 +13:00 committed by GitHub
parent a0d3bac88c
commit 5b5f7e9e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 48 additions and 29 deletions

View file

@ -115,7 +115,7 @@ class LXDClient:
return resp_json
self._raise_err_from_json(resp_json)
return resp_json
except socket.error as e:
except OSError as e:
raise LXDClientException("cannot connect to the LXD server", err=e) from e
def _raise_err_from_json(self, resp_json):