From 03ae0cf0706ede5a2a15da0986c19c776d0e6b26 Mon Sep 17 00:00:00 2001 From: Plato Mavropoulos Date: Mon, 31 Oct 2022 17:04:50 +0200 Subject: [PATCH] Fixed potential crash at files without extension(s) --- common/path_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/path_ops.py b/common/path_ops.py index 26eca72..bcff167 100644 --- a/common/path_ops.py +++ b/common/path_ops.py @@ -81,7 +81,7 @@ def path_stem(in_path): # Get list of path file extensions def path_suffixes(in_path): - return PurePath(in_path).suffixes + return PurePath(in_path).suffixes or [''] # Check if path is absolute def is_path_absolute(in_path):