]> arthur.barton.de Git - bup.git/commitdiff
Fix bup-web error formatting when port unsupplied
authorWyatt Alt <wyatt.alt@gmail.com>
Sun, 19 Apr 2020 21:46:52 +0000 (14:46 -0700)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 May 2020 01:59:41 +0000 (20:59 -0500)
Previously supplying the bup dir to bup web by mistake would result in a
python syntax error.

Signed-off-by: Wyatt Alt <wyatt.alt@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/web-cmd.py

index eeb9107d3e93e19e98c2c1bb61a7cf68d571d82b..305eeaad50ee2801014cdfa87958189cdcf813fd 100755 (executable)
@@ -269,7 +269,7 @@ else:
         try:
             port = int(port)
         except (TypeError, ValueError) as ex:
-            o.fatal('port must be an integer, not %r', port)
+            o.fatal('port must be an integer, not %r' % port)
         address = InetAddress(host=host, port=port)
 
 git.check_repo_or_die()