scripts/install-i18n.py

changeset 7836
2f0d208b8137
parent 7781
607a6098cb44
child 7923
91e843545d9a
--- a/scripts/install-i18n.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/scripts/install-i18n.py	Sun Nov 22 16:04:59 2020 +0100
@@ -78,9 +78,9 @@
         for fn in glob.glob(os.path.join('eric', 'eric6', 'i18n', '*.qm')):
             shutil.copy2(fn, targetDir)
             os.chmod(os.path.join(targetDir, os.path.basename(fn)), 0o644)
-    except IOError as msg:
+    except OSError as msg:
         sys.stderr.write(
-            'IOError: {0}\nTry install-i18n as root.\n'.format(msg))
+            'OSError: {0}\nTry install-i18n as root.\n'.format(msg))
     except OSError as msg:
         sys.stderr.write(
             'OSError: {0}\nTry install-i18n with admin rights.\n'.format(msg))

eric ide

mercurial