Skip to content

edl/run: Handle missing version in conninfo data#655

Merged
bkerler merged 1 commit intobkerler:masterfrom
danielkutik:noversion
May 5, 2025
Merged

edl/run: Handle missing version in conninfo data#655
bkerler merged 1 commit intobkerler:masterfrom
danielkutik:noversion

Conversation

@danielkutik
Copy link
Copy Markdown
Contributor

The 'conninfo' dictionary returned by the connection process might not always contain a 'data' key with a 'version' attribute.

Instead of directly accessing '.version', the code now uses a try-except block to catch the AttributeError. If the 'version' attribute is missing, it defaults to version 2, ensuring the subsequent logic can proceed without error.

The 'conninfo' dictionary returned by the connection process might not
always contain a 'data' key with a 'version' attribute.

Instead of directly accessing '.version', the code now uses a
try-except block to catch the AttributeError. If the 'version'
attribute is missing, it defaults to version 2, ensuring the subsequent
logic can proceed without error.
@bkerler bkerler merged commit 931667e into bkerler:master May 5, 2025
1 check failed
@bkerler
Copy link
Copy Markdown
Owner

bkerler commented May 5, 2025

Thanks !

ybtag pushed a commit to ybtag/edl that referenced this pull request Apr 16, 2026
edl/run: Handle missing version in conninfo data
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