--- a/eric6/Project/UserProjectFile.py Wed Apr 14 19:38:19 2021 +0200 +++ b/eric6/Project/UserProjectFile.py Wed Apr 14 19:59:16 2021 +0200 @@ -64,7 +64,7 @@ jsonString = json.dumps(userProjectDict, indent=2) with open(filename, "w") as f: f.write(jsonString) - except (TypeError, EnvironmentError) as err: + except (TypeError, OSError) as err: with E5OverridenCursor(): E5MessageBox.critical( None, @@ -93,7 +93,7 @@ with open(filename, "r") as f: jsonString = f.read() userProjectDict = json.loads(jsonString) - except (EnvironmentError, json.JSONDecodeError) as err: + except (OSError, json.JSONDecodeError) as err: E5MessageBox.critical( None, self.tr("Read User Project Properties"),