[elbe-devel] [PATCH 1/3] init: fix FileExistsError to OSError
Torben Hohn
torben.hohn at linutronix.de
Tue Jul 21 14:46:11 CEST 2020
FileExistsError only exists in python3. Use OSError for now.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/commands/init.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/commands/init.py b/elbepack/commands/init.py
index 834cdfd7e..f3950787f 100644
--- a/elbepack/commands/init.py
+++ b/elbepack/commands/init.py
@@ -293,6 +293,6 @@ def run_command(argv):
for src, dst in to_cpy:
try:
os.makedirs(dst)
- except FileExistsError:
+ except OSError:
pass
shutil.copy(src, dst)
--
2.20.1
More information about the elbe-devel
mailing list