summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorju5t <m@ju5t.nl>2018-06-25 09:43:23 +0200
committerju5t <m@ju5t.nl>2018-06-25 09:43:23 +0200
commit7cd3d53252181d1837b6a17961c420a4511b2326 (patch)
tree179f5fba672dc6ac6a068c1a58a6e0e81ae5aa6d
parent31062ba2ce326bf3165c15b325b31b226dc69a11 (diff)
downloadgerbonara-7cd3d53252181d1837b6a17961c420a4511b2326.tar.gz
gerbonara-7cd3d53252181d1837b6a17961c420a4511b2326.tar.bz2
gerbonara-7cd3d53252181d1837b6a17961c420a4511b2326.zip
Skip subdirectories during import
If a directory contains subdirectories from_directory throws an exception.
-rw-r--r--gerber/pcb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/pcb.py b/gerber/pcb.py
index a213fb3..ba15161 100644
--- a/gerber/pcb.py
+++ b/gerber/pcb.py
@@ -48,6 +48,9 @@ class PCB(object):
except ParseError:
if verbose:
print('[PCB]: Skipping file {}'.format(filename))
+ except IOError:
+ if verbose:
+ print('[PCB]: Skipping file {}'.format(filename))
# Try to guess board name
if board_name is None: