Conditions | 7 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 7.116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 1 | import logging |
|
48 | 1 | def _skip_cache(self, kwargs): |
|
49 | 1 | if self.disabled: |
|
50 | log.debug("Caching disabled") |
||
51 | return True |
||
52 | |||
53 | 1 | if kwargs in self.items: |
|
54 | 1 | log.debug("Already cached: %s", kwargs) |
|
55 | 1 | return True |
|
56 | |||
57 | 1 | if self.filtered: |
|
58 | |||
59 | 1 | if kwargs['key'] == 'custom' or kwargs.get('alt'): |
|
60 | 1 | log.debug("Skipped caching of custom background: %s", kwargs) |
|
61 | 1 | return True |
|
62 | 1 | if profanityfilter.is_profane(kwargs['path']): |
|
63 | 1 | log.debug("Skipped caching of profane content: %s", kwargs) |
|
64 | 1 | return True |
|
65 | |||
66 | return False |
||
67 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.