Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu committed Jan 25, 2025
1 parent b2676c3 commit 4970093
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions authentik/lib/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

LOGGER = get_logger()

Check warning on line 5 in authentik/lib/debug.py

View check run for this annotation

Codecov / codecov/patch

authentik/lib/debug.py#L5

Added line #L5 was not covered by tests


def start_debug_server(**kwargs) -> bool:

Check warning on line 8 in authentik/lib/debug.py

View check run for this annotation

Codecov / codecov/patch

authentik/lib/debug.py#L8

Added line #L8 was not covered by tests
"""Attempt to start a debugpy server in the current process.
Returns true if the server was started successfully, otherwise false"""
Expand All @@ -12,8 +13,10 @@ def start_debug_server(**kwargs) -> bool:
try:
import debugpy
except ImportError:
LOGGER.warning("Failed to import debugpy. debugpy is not included "
"in the default release dependencies and must be installed manually")
LOGGER.warning(

Check warning on line 16 in authentik/lib/debug.py

View check run for this annotation

Codecov / codecov/patch

authentik/lib/debug.py#L11-L16

Added lines #L11 - L16 were not covered by tests
"Failed to import debugpy. debugpy is not included "
"in the default release dependencies and must be installed manually"
)
return False

Check warning on line 20 in authentik/lib/debug.py

View check run for this annotation

Codecov / codecov/patch

authentik/lib/debug.py#L20

Added line #L20 was not covered by tests

listen: str = CONFIG.get("listen.listen_debug_py", "127.0.0.1:9901")
Expand Down

0 comments on commit 4970093

Please sign in to comment.