Skip to content

Inverted retry condition in SysUtil.link_infos() makes retry loop ineffective #850

@MahmoudSultan1

Description

@MahmoudSultan1

In library/network_connections.py, the retry logic in link_infos() around line 236 has an inverted condition:

except Exception:
    if try_count < 50:
        raise
    continue

This re-raises the exception immediately on the first failure instead of retrying. Hence, continue is never reached.

The fix is to invert the condition:

except Exception:
    if try_count >= 50:
        raise
    continue

Present in 1.17.9 and current main.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions