diff options
Diffstat (limited to 'buildstream/sandbox/_sandboxchroot.py')
-rw-r--r-- | buildstream/sandbox/_sandboxchroot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/sandbox/_sandboxchroot.py b/buildstream/sandbox/_sandboxchroot.py index 71422476a..7266a00e3 100644 --- a/buildstream/sandbox/_sandboxchroot.py +++ b/buildstream/sandbox/_sandboxchroot.py @@ -188,7 +188,7 @@ class SandboxChroot(Sandbox): # Exceptions in preexec_fn are simply reported as # 'Exception occurred in preexec_fn', turn these into # a more readable message. - if '{}'.format(e) == 'Exception occurred in preexec_fn.': + if str(e) == 'Exception occurred in preexec_fn.': raise SandboxError('Could not chroot into {} or chdir into {}. ' 'Ensure you are root and that the relevant directory exists.' .format(rootfs, cwd)) from e |