From c20592ddc2f679b15c203c78a16a5d129067b7b8 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Mon, 24 Oct 2016 09:29:22 +0200 Subject: [PATCH] catch type error when pulling phantom pads --- etherdump/commands/pull.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etherdump/commands/pull.py b/etherdump/commands/pull.py index 20d3bca..198eb7a 100644 --- a/etherdump/commands/pull.py +++ b/etherdump/commands/pull.py @@ -129,6 +129,10 @@ def main (args): break else: sleep(3) + except TypeError as e: + print ("Type Error loading pad {0} (phantom pad?), skipping".format(padid).encode("utf-8"), file=sys.stderr) + skip=True + break if skip: continue