Skip to content

Commit

Permalink
cleanup no longer needed try/except
Browse files Browse the repository at this point in the history
  • Loading branch information
elesiuta committed May 30, 2021
1 parent 5b5fc1b commit 6f62e33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions picosnitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,11 @@ def process_queue(snitch: dict, known_pids: dict, missed_conns: list, new_proces
_ = proc.pop("missed")
snitch["Errors"].append(ctime + " no known process for conn: " + str(proc))
for proc in pending_list:
try:
if proc["type"] == "conn":
conn = {"ip": proc["ip"], "port": proc["port"]}
else:
conn = {"ip": "", "port": -1}
update_snitch_pending.append((proc, conn, ctime))
except Exception:
pass
if proc["type"] == "conn":
conn = {"ip": proc["ip"], "port": proc["port"]}
else:
conn = {"ip": "", "port": -1}
update_snitch_pending.append((proc, conn, ctime))
return pending_conns, update_snitch_pending


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="picosnitch",
version="0.3.4",
version="0.3.5",
description="See which processes make remote network connections",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 6f62e33

Please sign in to comment.