Conditions | 1 |
Total Lines | 6 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | 1 | from abc import ABCMeta |
|
6 | 1 | def __init__(self, *exceptions): |
|
7 | 1 | kwargs = {e.__name__: e for e in exceptions} |
|
8 | 1 | self.TemplateNotFound = kwargs.get('TemplateNotFound', KeyError) |
|
9 | 1 | self.InvalidMaskedCode = kwargs.get('InvalidMaskedCode', ValueError) |
|
10 | 1 | self.FilenameTooLong = kwargs.get('FilenameTooLong', ValueError) |
|
11 | 1 | self.InvalidImageLink = kwargs.get('InvalidImageLink', ValueError) |
|
12 | |||
19 |