Skip to content

Commit

Permalink
fix TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Aug 1, 2017
1 parent 32edf35 commit 4672390
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions psutil/_pswindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ def net_connections(kind, _pid=-1):
ret = set()
for item in rawlist:
fd, fam, type, laddr, raddr, status, pid = item
laddr = _common.addr(*laddr)
raddr = _common.addr(*raddr)
if laddr:
laddr = _common.addr(*laddr)
if raddr:
raddr = _common.addr(*raddr)
status = TCP_STATUSES[status]
fam = sockfam_to_enum(fam)
type = socktype_to_enum(type)
Expand Down

0 comments on commit 4672390

Please sign in to comment.