-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interpret 'required' key when present in a reportlets config dictionary.
If its true and no files/figures were found then raise an exception. Report indexer will catch these exceptions and raise a single exception at the end of its run with all of the collected reportlet exceptions.
- Loading branch information
Showing
4 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class NiReportsException(Exception): | ||
pass | ||
|
||
class ReportletException(NiReportsException): | ||
pass | ||
|
||
class RequiredReportletException(ReportletException): | ||
def __init__(self, config): | ||
self.args = (f'No content found while generated reportlet listed as required with the following config: {config}',) |