Skip to content

Commit 8f20361

Browse files
committed
Update airflow/task/task_runner/base_task_runner.py
1 parent 90a2797 commit 8f20361

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

airflow/task/task_runner/base_task_runner.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ def __init__(self, local_task_job):
8787

8888
self._error_file = NamedTemporaryFile(delete=True)
8989
if self.run_as_user:
90-
try:
91-
os.chown(self._error_file.name, getpwnam(self.run_as_user).pw_uid, -1)
92-
except Exception:
93-
pass
90+
os.chown(self._error_file.name, getpwnam(self.run_as_user).pw_uid, -1)
9491

9592
self._cfg_path = cfg_path
9693
self._command = (

0 commit comments

Comments
 (0)