diff options
Diffstat (limited to 'scripts/lib/wic/imager/baseimager.py')
-rw-r--r-- | scripts/lib/wic/imager/baseimager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py index 67a2d0116b..4abcabca4b 100644 --- a/scripts/lib/wic/imager/baseimager.py +++ b/scripts/lib/wic/imager/baseimager.py | |||
@@ -132,9 +132,9 @@ class BaseImageCreator(object): | |||
132 | os.makedirs(self.workdir) | 132 | os.makedirs(self.workdir) |
133 | self.__builddir = tempfile.mkdtemp(dir=self.workdir, | 133 | self.__builddir = tempfile.mkdtemp(dir=self.workdir, |
134 | prefix="imgcreate-") | 134 | prefix="imgcreate-") |
135 | except OSError, (err, msg): | 135 | except OSError as err: |
136 | raise CreatorError("Failed create build directory in %s: %s" % | 136 | raise CreatorError("Failed create build directory in %s: %s" % |
137 | (self.tmpdir, msg)) | 137 | (self.tmpdir, err)) |
138 | 138 | ||
139 | def __setup_tmpdir(self): | 139 | def __setup_tmpdir(self): |
140 | if not self.enabletmpfs: | 140 | if not self.enabletmpfs: |