Skip to content

Commit 8b9c425

Browse files
committed
Merge branch 'jh/p4-fix-use-of-process-error-exception'
* jh/p4-fix-use-of-process-error-exception: git-p4: fix instantiation of CalledProcessError
2 parents 492261a + 40e7cfd commit 8b9c425

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-p4.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def system(cmd, ignore_error=False):
406406
sys.stderr.write("executing %s\n" % str(cmd))
407407
retcode = subprocess.call(cmd, shell=expand)
408408
if retcode and not ignore_error:
409-
raise CalledProcessError(retcode, cmd)
409+
raise subprocess.CalledProcessError(retcode, cmd)
410410

411411
return retcode
412412

@@ -416,7 +416,7 @@ def p4_system(cmd):
416416
expand = not isinstance(real_cmd, list)
417417
retcode = subprocess.call(real_cmd, shell=expand)
418418
if retcode:
419-
raise CalledProcessError(retcode, real_cmd)
419+
raise subprocess.CalledProcessError(retcode, real_cmd)
420420

421421
def die_bad_access(s):
422422
die("failure accessing depot: {0}".format(s.rstrip()))
@@ -4110,7 +4110,7 @@ def run(self, args):
41104110
init_cmd.append("--bare")
41114111
retcode = subprocess.call(init_cmd)
41124112
if retcode:
4113-
raise CalledProcessError(retcode, init_cmd)
4113+
raise subprocess.CalledProcessError(retcode, init_cmd)
41144114

41154115
if not P4Sync.run(self, depotPaths):
41164116
return False

0 commit comments

Comments
 (0)