Skip to content

Commit

Permalink
Remove some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kimadeline committed Sep 10, 2019
1 parent 5ba1c9c commit 86e8d7d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions pythonFiles/ptvsd_folder_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,14 @@ def ptvsd_folder_name():
try:
spec, = specs
version = spec.version
# print(f"ptvsd version: {version}")
except ValueError as v:
# print(f"Value error: {v}")
print(f"ptvsd version: {version}")
except:
# Fallpack to use base PTVSD path.
print(PYTHONFILES, end="")
return
break

try:
# print("** Available tags: **")
# for k in sys_tags():
# print(
# f"interpreter: {k.interpreter} - abi: {k.abi} - platform: {k.platform}"
# )
# print("----")
for tag in sys_tags():
# Support PTVSD's py2.py3 compressed tag.
interpreter = "py2.py3" if tag.interpreter == "py3" else tag.interpreter
Expand All @@ -52,8 +45,8 @@ def ptvsd_folder_name():
return
else:
print(f"{folder_path} doesn't exist")
except Exeption as e:
print(f"Exception: {e}")
except:
print(f"Something went wrong")
# Fallback to use base PTVSD path no matter the exception.
print(PYTHONFILES, end="")
return
Expand Down

0 comments on commit 86e8d7d

Please sign in to comment.