Browse Source

add option for when all backups are deleted

Aiden Holmes 1 month ago
parent
commit
515f8dd5fc
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      restor.py

+ 4
- 1
restor.py View File

@@ -53,7 +53,10 @@ def main():
53 53
         # print most recent available backup
54 54
         print
55 55
         print "most recent available backup:"
56
-        print data[possible_backups[-1]]
56
+        try:
57
+            print data[possible_backups[-1]]
58
+        except:
59
+            print "no possible backups"
57 60
         print
58 61
 
59 62
         has_number = False

Loading…
Cancel
Save