From b61f31bf15e733de5881cc070feb57aa3686c92d Mon Sep 17 00:00:00 2001 From: Matthew Harmsen Date: Fri, 4 Jan 2013 22:01:07 -0800 Subject: Use tomcatjss 7.1.0 and fix weird errno=0 exception * TRAC Ticket #469 - Dogtag 10: Fix tomcatjss issue in pki-core.spec and dogtag-pki.spec . . . * TRAC Ticket #468 - pkispawn throws exception --- base/deploy/src/scriptlets/pkijython.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'base/deploy/src/scriptlets/pkijython.py') diff --git a/base/deploy/src/scriptlets/pkijython.py b/base/deploy/src/scriptlets/pkijython.py index fac352fdb..a7635c130 100644 --- a/base/deploy/src/scriptlets/pkijython.py +++ b/base/deploy/src/scriptlets/pkijython.py @@ -313,7 +313,13 @@ class rest_client: try: os.makedirs(path) except OSError, e: - if exc.errno == errno.EEXIST and os.path.isdir(path): + if e.errno == 0: + # Avoid the following weird python/jython exception: + # + # [Errno 0] couldn't make directories: + # + pass + elif e.errno == errno.EEXIST and os.path.isdir(path): pass else: raise -- cgit