Skip to content

Commit

Permalink
Ensure that DAP_PORT is always an int (#3241)
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Co-authored-by: jamshale <31809382+jamshale@users.noreply.github.com>
  • Loading branch information
Gavinok and jamshale committed Sep 19, 2024
1 parent 8384c3c commit 0bd6991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aries_cloudagent/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def init_debug(args):
# --debug to use microsoft's visual studio remote debugger
if ENABLE_PTVSD or "--debug" in args:
DAP_HOST = os.getenv("PTVSD_HOST", None) or os.getenv("DAP_HOST", "localhost")
DAP_PORT = os.getenv("PTVSD_PORT", None) or os.getenv("DAP_PORT", 5678)
DAP_PORT = int(os.getenv("PTVSD_PORT", None) or os.getenv("DAP_PORT", 5678))
try:
import debugpy

Expand Down

0 comments on commit 0bd6991

Please sign in to comment.