Skip to content

Commit de82bef

Browse files
committed
Added check before commenting on libraries.
If the example has no parent library, we should not try to comment a non existing library anyway.
1 parent c0c5a1d commit de82bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codebender_testing/disqus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def update_comment(self, sketch, results, current_date, log_entry, openFailFlag,
7676
library_to_comment = library
7777

7878
#Check if we should add a comment to the library.
79-
if library_to_comment:
79+
if library_to_comment and library not in self.examples_without_library:
8080
log_entry = self.handle_library_comment(library_to_comment, current_date, log_entry)
8181

8282
self.last_library = library

0 commit comments

Comments
 (0)