Core: Fix remaining LGTM error

This commit is contained in:
Mike Auty
2022-08-03 22:03:26 +01:00
parent 6f991f8d4f
commit 4c4ccbf4e0
+2 -2
View File
@@ -5,7 +5,7 @@ import logging
import threading
from typing import Any, Dict, IO, List, Optional, Union
from volatility3.framework import exceptions, interfaces, constants
from volatility3.framework import constants, exceptions, interfaces
from volatility3.framework.configuration import requirements
from volatility3.framework.layers import resources
@@ -191,7 +191,7 @@ class FileLayer(interfaces.layers.DataLayerInterface):
"""Closes the file handle."""
self._file.close()
def __exit__(self) -> None:
def __exit__(self, type, value, traceback) -> None:
self.destroy()
@classmethod