Skip to content

Commit

Permalink
remove errant prints + add appropriate error output
Browse files Browse the repository at this point in the history
  • Loading branch information
jnhmcknight committed Aug 23, 2022
1 parent b5bbb3f commit 633704f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wireguard/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ def __init__(self,
self.allowed_ips.add(ip_network(ip))

if allowed_ips:
print('here')
if isinstance(allowed_ips, (list, set, tuple)):
print('there')
self.allowed_ips.extend(allowed_ips)
else:
self.allowed_ips.add(allowed_ips)
Expand Down
2 changes: 2 additions & 0 deletions wireguard/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ def stats(self):
'persistent_keepalive': peerstat[7] if peerstat[7] != 'off' else False,
}
except IndexError:
print('Failed to parse:')
print(line)
continue

peer.load(data)
peers.update({peer.peer: peer})
Expand Down

0 comments on commit 633704f

Please sign in to comment.