eric6/UI/UserInterface.py

changeset 7836
2f0d208b8137
parent 7814
6fa40642ed7c
child 7850
e64b178499da
child 7853
35dcac32984a
--- a/eric6/UI/UserInterface.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/UI/UserInterface.py	Sun Nov 22 16:04:59 2020 +0100
@@ -1500,7 +1500,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:
@@ -5008,7 +5008,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5078,7 +5078,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5248,7 +5248,7 @@
                             ' is zero length.</p>')
                         .format(fn))
                     return
-            except EnvironmentError:
+            except OSError:
                 E5MessageBox.critical(
                     self,
                     self.tr('Problem'),
@@ -5304,7 +5304,7 @@
                                     ' is zero length.</p>')
                                 .format(fn))
                             return
-                except EnvironmentError:
+                except OSError:
                     if not ignore:
                         E5MessageBox.critical(
                             self,

eric ide

mercurial