Skip to content

Commit eec07f4

Browse files
committed
libbtrfsutil: fix exception type in setup.py
CodeQL reports that the exception type is missing and falls back to the BaseException. The recommended fix is to use Exception type as this will behave the same but avoids using the base type. [ci skip] Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 9f070e4 commit eec07f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libbtrfsutil/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_version():
3030
try:
3131
import version
3232
version = version.btrfs_util_py_version
33-
except:
33+
except Exception:
3434
# Don't fail if this is only the 'clean' target or no command
3535
if 'clean' in sys.argv or len(sys.argv) == 1:
3636
version = '0.0'

0 commit comments

Comments
 (0)