git-p4: narrow the scope of exceptions caught when parsing an int
commit8fa0abf830ef3c8e97846cef0986589b49bcfe6f
authorLuke Diamand <luke@diamand.org>
Fri, 8 Jun 2018 20:32:47 +0000 (8 21:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jun 2018 21:46:09 +0000 (12 14:46 -0700)
tree8bfa5c6619ea2ce7b4ef0b0e5cfcef3bbeef1974
parent55bb3e3611c7b3f7bbbaf8d9ce98a4ed4196c3eb
git-p4: narrow the scope of exceptions caught when parsing an int

The current code traps all exceptions around some code which parses an
integer, and then talks to Perforce.

That can result in errors from Perforce being ignored. Change the code
to only catch the integer conversion exceptions.

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py