File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,18 @@ def process_repo(repo, destination_directory):
57
57
print (f"Found tutorial(s) { tutorials } " )
58
58
for t in tutorials :
59
59
shutil .copy (t , destination_directory )
60
- shutil .copy (f"{ repo } /{ os .path .splitext (os .path .basename (t ))[0 ]} .html" , destination_directory )
60
+ shutil .copy (
61
+ f"{ repo } /{ os .path .splitext (os .path .basename (t ))[0 ]} .html" ,
62
+ destination_directory ,
63
+ )
61
64
if len (tutorials ) > 1 :
62
65
print ("More than 1 tutorial found; treating this as a book" )
63
66
shutil .copy (f"{ repo } /index.html" , destination_directory )
64
67
# copy images (plots) in notebook for faster page loading
65
- shutil .copy (f"{ repo } /_images/*.png" , f"{ destination_directory } /nboutput" )
68
+ try :
69
+ shutil .copy (f"{ repo } /_images/*.png" , f"{ destination_directory } /nboutput" )
70
+ except FileNotFoundError :
71
+ pass
66
72
67
73
68
74
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments