We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8573235 commit 913a1b0Copy full SHA for 913a1b0
1 file changed
src/scout_apm/core/agent/manager.py
@@ -231,8 +231,14 @@ def download_package(self):
231
return True
232
233
def untar(self):
234
- t = tarfile.open(self.package_location, "r")
235
- t.extractall(self.destination)
+ try:
+ t = tarfile.open(self.package_location, "r")
236
+ # https://docs.python.org/3.12/library/tarfile.html#extraction-filters
237
+ t.extractall(path=self.destination, filter="data")
238
+ except Exception as e:
239
+ logger.error(
240
+ f"Error extracting {self.package_location} to {self.destination}: {e}"
241
+ )
242
243
def full_url(self):
244
return "{root_url}/{core_agent_full_name}.tgz".format(
0 commit comments