Skip to content

Commit d051c08

Browse files
committed
Manual fixes
1 parent 48977ef commit d051c08

File tree

4 files changed

+4
-244
lines changed

4 files changed

+4
-244
lines changed

contentctl/actions/detection_testing/GitService.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
if TYPE_CHECKING:
1111
from contentctl.input.director import DirectorOutputDto
1212

13+
from contentctl.input.director import DirectorOutputDto
1314
from contentctl.objects.config import All, Changes, Selected, test_common
1415
from contentctl.objects.data_source import DataSource
1516
from contentctl.objects.detection import Detection
@@ -22,7 +23,7 @@
2223
LOGGER = logging.getLogger(__name__)
2324

2425

25-
from contentctl.input.director import DirectorOutputDto
26+
2627

2728

2829
class GitService(BaseModel):

contentctl/actions/initialize_old.py

Lines changed: 0 additions & 241 deletions
This file was deleted.

contentctl/helper/link_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def initialize_cache(use_file_cache: bool = False):
104104

105105
try:
106106
LinkValidator.cache = shelve.open(LinkValidator.reference_cache_file, flag='c', writeback=True)
107-
except:
107+
except Exception:
108108
print(f"Failed to create the cache file {LinkValidator.reference_cache_file}. Reference info will not be cached.")
109109
LinkValidator.cache = {}
110110

contentctl/objects/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ def releaseNotesFilename(self, filename: str) -> pathlib.Path:
11621162
p = self.path / "dist"
11631163
try:
11641164
p.mkdir(exist_ok=True, parents=True)
1165-
except Exception:
1165+
except Exception as e:
11661166
raise Exception(
11671167
f"Error making the directory '{p}' to hold release_notes: {str(e)}"
11681168
)

0 commit comments

Comments
 (0)