diff options
author | Matthew Harmsen <mharmsen@redhat.com> | 2013-01-04 22:01:07 -0800 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-01-07 09:23:34 -0500 |
commit | 756f70875d37182f7af958fd16e19a9c0277481c (patch) | |
tree | 33f6644f94e48955deadb8e5b2942414fb187136 /base/deploy/src/scriptlets/pkijython.py | |
parent | 4faa78799a947b7c06db6835ac25c0954e102c5a (diff) | |
download | pki-756f70875d37182f7af958fd16e19a9c0277481c.tar.gz pki-756f70875d37182f7af958fd16e19a9c0277481c.tar.xz pki-756f70875d37182f7af958fd16e19a9c0277481c.zip |
Use tomcatjss 7.1.0 and fix weird errno=0 exceptionticket-468
* 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/scriptlets/pkijython.py')
-rw-r--r-- | base/deploy/src/scriptlets/pkijython.py | 8 |
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 |