eric6/UI/UserInterface.py

branch
maintenance
changeset 7850
e64b178499da
parent 7824
096b3ebc1409
parent 7836
2f0d208b8137
child 7924
8a96736d465e
--- a/eric6/UI/UserInterface.py	Sun Nov 01 11:17:06 2020 +0100
+++ b/eric6/UI/UserInterface.py	Sat Dec 05 12:29:26 2020 +0100
@@ -1499,7 +1499,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:
@@ -5007,7 +5007,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5077,7 +5077,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5247,7 +5247,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5303,7 +5303,7 @@
                                     ' is zero length.</p>')
                                 .format(fn))
                             return
-                except EnvironmentError:
+                except OSError:
                     if not ignore:
                         E5MessageBox.critical(
                             self,

eric ide

mercurial