diff options
author | Ghostkeeper <rubend@tutanota.com> | 2020-09-03 18:52:44 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2020-09-03 18:52:44 +0300 |
commit | 8c0e21f0d58549b645cbd5e5823acdfee0c44781 (patch) | |
tree | 6f55d7ba439bd30f593d50a0d66a15d2427531b6 | |
parent | 0b22b94950caba0d45550e37f0a408ad7fc3307a (diff) |
Don't crash if mesh loading fails
Some plug-ins (like the OBJReader) return None then.
Fixes Sentry issue CURA-14P.
-rwxr-xr-x | cura/CuraApplication.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 0446400362..434841160c 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1799,6 +1799,9 @@ class CuraApplication(QtApplication): return nodes = job.getResult() + if nodes is None: + Logger.error("Read mesh job returned None. Mesh loading must have failed.") + return file_name = job.getFileName() file_name_lower = file_name.lower() file_extension = file_name_lower.split(".")[-1] |