eric6/UI/UserInterface.py

branch
multi_processing
changeset 7853
35dcac32984a
parent 7818
5c9271c2f662
parent 7836
2f0d208b8137
child 7900
72b88fb20261
--- a/eric6/UI/UserInterface.py	Sat Oct 31 12:19:44 2020 +0100
+++ b/eric6/UI/UserInterface.py	Sat Dec 05 18:02:17 2020 +0100
@@ -1488,7 +1488,7 @@
                             installInfo["eric"], os.W_OK)
                         with open(installInfoFile, "w") as infoFile:
                             json.dump(installInfo, infoFile, indent=2)
-                    except EnvironmentError:
+                    except OSError:
                         # ignore this
                         pass
         else:
@@ -4996,7 +4996,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5066,7 +5066,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5236,7 +5236,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5292,7 +5292,7 @@
                                     ' is zero length.</p>')
                                 .format(fn))
                             return
-                except EnvironmentError:
+                except OSError:
                     if not ignore:
                         E5MessageBox.critical(
                             self,

eric ide

mercurial