summaryrefslogtreecommitdiffstats
path: root/base/deploy/src
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2013-01-04 22:01:07 -0800
committerMatthew Harmsen <mharmsen@redhat.com>2013-01-07 12:00:46 -0800
commitb61f31bf15e733de5881cc070feb57aa3686c92d (patch)
tree33f6644f94e48955deadb8e5b2942414fb187136 /base/deploy/src
parent4faa78799a947b7c06db6835ac25c0954e102c5a (diff)
downloadpki-b61f31bf15e733de5881cc070feb57aa3686c92d.tar.gz
pki-b61f31bf15e733de5881cc070feb57aa3686c92d.tar.xz
pki-b61f31bf15e733de5881cc070feb57aa3686c92d.zip
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
Diffstat (limited to 'base/deploy/src')
-rw-r--r--base/deploy/src/scriptlets/pkijython.py8
1 files changed, 7 insertions, 1 deletions
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: <path>
+ #
+ pass
+ elif e.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise