Raise the correct exception when gitfs lockfile is empty

Catching the ValueError around line 416 means that when we re-raise
the exception below, we raise the wrong exception. This commit
explicitly raises the outer-scope exception that we caught above the
block where we attempt to read from the lock file.

Resolves #34114.
This commit is contained in:
Erik Johnson 2016-06-21 13:48:32 -05:00
parent 79a719b719
commit 86d1b8e864

View file

@ -442,7 +442,7 @@ class GitProvider(object):
'by another master.')
log.warning(msg)
if failhard:
raise
raise exc
return
elif pid and pid_exists(pid):
log.warning('Process %d has a %s %s lock (%s)',