Skip to content

Commit c5c459a

Browse files
author
Vladimir Kotal
committed
best effort on getcwd()
1 parent fed6b11 commit c5c459a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/sync/command.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ def close(self):
166166
output_thread = OutputThread()
167167
try:
168168
start_time = time.time()
169-
self.logger.debug("working directory = {}".format(os.getcwd()))
169+
try:
170+
self.logger.debug("working directory = {}".format(os.getcwd()))
171+
except PermissionError:
172+
pass
170173
self.logger.debug("command = {}".format(self.cmd))
171174
if self.env_vars:
172175
my_env = os.environ.copy()

0 commit comments

Comments
 (0)