Skip to content

Commit 784798a

Browse files
committed
updating notebook with start of work for voronoi
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
1 parent 7050a56 commit 784798a

File tree

2 files changed

+231
-0
lines changed

2 files changed

+231
-0
lines changed

codeart/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ def add_file(self, filename, max_bytes=100000):
426426
"""Based on a filename, add the filename to the appropriate code files
427427
instance depending on the extension. Ignore files in list of skip.
428428
"""
429+
# Must be readable / accessible
430+
if not os.access(filename, os.R_OK):
431+
return
432+
429433
size = os.path.getsize(filename)
430434
name, ext = os.path.splitext(os.path.basename(filename))
431435

0 commit comments

Comments
 (0)