mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #9011 from Jorge-Rodriguez/develop
Catch os.error instead of all Exceptions
This commit is contained in:
commit
018a2d9c99
@ -136,7 +136,7 @@ def init():
|
||||
repo.git.config('http.sslVerify', 'true')
|
||||
else:
|
||||
repo.git.config('http.sslVerify', 'false')
|
||||
except Exception:
|
||||
except os.error:
|
||||
# This exception occurs when two processes are trying to write
|
||||
# to the git config at once, go ahead and pass over it since
|
||||
# this is the only write
|
||||
|
Loading…
Reference in New Issue
Block a user