Skip to content

Commit

Permalink
reset broadcast addr in the ntuple only if not None
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 23, 2025
1 parent 37d2f7a commit ba6e7a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psutil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,8 @@ def net_if_addrs():
except Exception as err: # noqa: BLE001
debug(err)
else:
nt._replace(broadcast=broadcast)
if broadcast is not None:
nt._replace(broadcast=broadcast)

ret[name].append(nt)

Expand Down

0 comments on commit ba6e7a3

Please sign in to comment.