summaryrefslogtreecommitdiffstats
path: root/libmount/python
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/python')
-rw-r--r--libmount/python/fs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/python/fs.c b/libmount/python/fs.c
index 9cf2555e4..0789d3797 100644
--- a/libmount/python/fs.c
+++ b/libmount/python/fs.c
@@ -39,7 +39,8 @@ static PyObject *Fs_get_tag(FsObject *self)
const char *tag = NULL, *val = NULL;
PyObject *result;
- mnt_fs_get_tag(self->fs, &tag, &val);
+ if (mnt_fs_get_tag(self->fs, &tag, &val) != 0)
+ return NULL;
result = Py_BuildValue("(ss)", tag, val);
if (!result)