From 0bd69913f1b6855e61dd790c586337f4e6ecd67e Mon Sep 17 00:00:00 2001 From: Gavinok <34443260+Gavinok@users.noreply.github.com> Date: Thu, 19 Sep 2024 08:54:33 -0700 Subject: [PATCH] Ensure that DAP_PORT is always an int (#3241) Signed-off-by: Gavin Jaeger-Freeborn Co-authored-by: jamshale <31809382+jamshale@users.noreply.github.com> --- aries_cloudagent/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aries_cloudagent/__main__.py b/aries_cloudagent/__main__.py index 6b4ebc76f7..76c14333ee 100644 --- a/aries_cloudagent/__main__.py +++ b/aries_cloudagent/__main__.py @@ -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