[Git][security-tracker-team/security-tracker][master] do not crash if --unclaim is not specified

Salvatore Bonaccorso carnil at debian.org
Mon Nov 19 18:38:46 GMT 2018


Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker


Commits:
ab2977b1 by Antoine Beaupré at 2018-11-19T18:19:02Z
do not crash if --unclaim is not specified

- - - - -


1 changed file:

- bin/review-update-needed


Changes:

=====================================
bin/review-update-needed
=====================================
@@ -49,10 +49,11 @@ args = parser.parse_args()
 if args.verbose and args.quiet:
     args.error("--verbose and --quiet contradiction")
 
-if humanfriendly:
-    unclaim_delta = timedelta(seconds=humanfriendly.parse_timespan(args.unclaim))
-else:
-    unclaim_delta = timedelta(seconds=args.unclaim)
+if args.unclaim:
+    if humanfriendly:
+        unclaim_delta = timedelta(seconds=humanfriendly.parse_timespan(args.unclaim))
+    else:
+        unclaim_delta = timedelta(seconds=args.unclaim)
 
 if args.lts:
     dsa_dla_needed = 'data/dla-needed.txt'



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/ab2977b1c543b95b2ac83c2732d54b37f614e172

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/ab2977b1c543b95b2ac83c2732d54b37f614e172
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20181119/84bc7084/attachment-0001.html>


More information about the debian-security-tracker-commits mailing list