Skip to content

Commit

Permalink
suppress some annoying errors
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Feb 16, 2024
1 parent da6936f commit 5937893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ def _downloadKit(self, kitId: str) -> bool:
return False
finally:
try:
if tempdir:
if tempdir and Path(tempdir).safe_isdir():
shutil.rmtree(tempdir)
except Exception as exc: # noqa: BLE001
print(format_exception_with_variables(exc))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def openModule(self):
[
bwm.resource() # FIXME: resource() will sometimes return None
for bwm in self._module.resources.values()
if bwm.restype() == ResourceType.WOK
if bwm.restype() == ResourceType.WOK and bwm.resource() is not None
],
)
self.ui.flatRenderer.centerCamera()
Expand Down

0 comments on commit 5937893

Please sign in to comment.