Skip to content

Conversation

@mcw-work
Copy link
Contributor

@mcw-work mcw-work commented Jun 2, 2025

No description provided.

sock.connect(SNAPD_SOCKET)
try:
sock.connect(SNAPD_SOCKET)
except socket.error as e:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

socket.error is deprecated. In Python >=3.3, should do:

except OSError as e:

Do we need to support <3.3 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Na. Snap is currently running 3.10 and will go to 3.12 soon when we rebase to Core24.

Changed to OSError
@Perfect5th Perfect5th merged commit 51892b2 into canonical:main Jun 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants