about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-12-19 11:37:58 +0100
committerMichael Biebl <biebl@debian.org>2022-12-19 11:37:58 +0100
commit3fbe6fc596ff5cb77eb3a51a82d7d32dc315e596 (patch)
treec90f43ad9456cf5f3ccff167047ac6bec6c69631 /examples
parentcecaa6ed43023e0f2c1d88cb9d5bed393529c6e6 (diff)
parentb2ca000f0e0a915aba25f7d16b34bd092055ad59 (diff)
Merge tag 'debian/1.40.8-1' into debian/bullseye-backports
network-manager Debian release 1.40.8-1
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/gi/checkpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/python/gi/checkpoint.py b/examples/python/gi/checkpoint.py
index 6f3194cd..6e94b07c 100755
--- a/examples/python/gi/checkpoint.py
+++ b/examples/python/gi/checkpoint.py
@@ -80,10 +80,10 @@ def find_checkpoint_last(nmc):
 
 def validate_path(path, nmc):
     if path == "--last":
-        path = find_checkpoint_last(nmc)
-        if path is None:
+        c = find_checkpoint_last(nmc)
+        if c is None:
             sys.exit("Has no checkpoint")
-        return path
+        return c.get_path()
 
     try:
         num = int(path)