diff options
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 |