mat2: fix typo in error message when a file does not exist
Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
This commit is contained in:
parent
0e3c2c9b1b
commit
2405df0469
2
mat2
2
mat2
@ -26,7 +26,7 @@ logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING)
|
|||||||
|
|
||||||
def __check_file(filename: str, mode: int = os.R_OK) -> bool:
|
def __check_file(filename: str, mode: int = os.R_OK) -> bool:
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
print("[-] %s is doesn't exist." % filename)
|
print("[-] %s doesn't exist." % filename)
|
||||||
return False
|
return False
|
||||||
elif not os.path.isfile(filename):
|
elif not os.path.isfile(filename):
|
||||||
print("[-] %s is not a regular file." % filename)
|
print("[-] %s is not a regular file." % filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user