eric6/Project/ProjectResourcesBrowser.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7911
4621c9082a43
child 7924
8a96736d465e
diff -r 0835ed67714b -r 2f0d208b8137 eric6/Project/ProjectResourcesBrowser.py
--- a/eric6/Project/ProjectResourcesBrowser.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/Project/ProjectResourcesBrowser.py	Sun Nov 22 16:04:59 2020 +0100
@@ -499,7 +499,7 @@
                     rcfile.write('<qresource>\n')
                     rcfile.write('</qresource>\n')
                     rcfile.write('</RCC>\n')
-            except IOError as e:
+            except OSError as e:
                 E5MessageBox.critical(
                     self,
                     self.tr("New Resource"),
@@ -612,7 +612,7 @@
                         self.tr("Resource Compilation"),
                         self.tr("The compilation of the resource file"
                                 " was successful."))
-            except IOError as msg:
+            except OSError as msg:
                 if not self.noDialog:
                     E5MessageBox.information(
                         self,
@@ -816,7 +816,7 @@
         try:
             with open(filename, "r", encoding="utf-8") as f:
                 buf = f.read()
-        except IOError:
+        except OSError:
             return False
         
         qrcDirName = os.path.dirname(filename)

eric ide

mercurial