Skip to content

Commit

Permalink
Merge pull request #124 from franc-pentest/fix-sccm
Browse files Browse the repository at this point in the history
Improve SCCM error handling
  • Loading branch information
tiyeuse authored Jan 7, 2025
2 parents e1d9fe7 + 2720f24 commit 7c218f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.78
1.0.79
8 changes: 4 additions & 4 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,8 @@ def list_sccm(self, kwargs):

try:
self.display(results, verbose)
except LDAPObjectClassError as e:
error(f"{e}. SCCM may not be installed", close_array=verbose)
except Exception as e:
error(f"{e}. Can't find SCCM management points", close_array=verbose)

# Distribution points
if verbose:
Expand All @@ -1089,8 +1089,8 @@ def list_sccm(self, kwargs):

try:
self.display(results, verbose)
except LDAPObjectClassError as e:
error(f"{e}. SCCM may not be installed", close_array=verbose)
except Exception as e:
error(f"{e}. Can't find SCCM distribution points", close_array=verbose)

def list_subnets(self, kwargs):
"""
Expand Down

0 comments on commit 7c218f6

Please sign in to comment.