--- a/ProjectPyramid/Project.py Wed Oct 14 19:00:37 2020 +0200 +++ b/ProjectPyramid/Project.py Sun Nov 22 16:24:10 2020 +0100 @@ -544,7 +544,7 @@ try: with open(fname, "w", encoding="utf-8") as f: f.write(template) - except IOError as e: + except OSError as e: E5MessageBox.critical( self.__ui, self.tr("New Form"), @@ -633,7 +633,7 @@ try: with open(fullCmd, 'r', encoding='utf-8') as f: l0 = f.readline() - except (IOError, OSError): + except OSError: l0 = "" if self.__isSuitableForVariant(variant, l0): variants.append(variant) @@ -821,7 +821,7 @@ ## sample: __requires__ = 'pyramid==1.4' vers = line.strip().split()[-1][1:-1].split("==")[1] self.__pyramidVersion = vers - except (IOError, OSError): + except OSError: self.__pyramidVersion = "" return self.__pyramidVersion @@ -1424,7 +1424,7 @@ """ if self.__e5project.getTranslationPattern(): # On Windows, path typically contains backslashes. This leads - # to an invalid seach pattern '...\(' because the opening bracked + # to an invalid search pattern '...\(' because the opening bracket # will be escaped. pattern = self.__e5project.getTranslationPattern() pattern = os.path.normpath(pattern)