mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Catch runtime errors when trying to disconnect signal
Contribute to CURA-8587
This commit is contained in:
parent
0a7aee5c09
commit
4d8592c6b7
2 changed files with 9 additions and 3 deletions
|
@ -55,8 +55,11 @@ class PackageList(ListModel):
|
|||
def __del__(self) -> None:
|
||||
""" When this object is deleted it will loop through all registered API requests and aborts them """
|
||||
self.cleanUpAPIRequest()
|
||||
self.isLoadingChanged.disconnect()
|
||||
self.hasMoreChanged.disconnect()
|
||||
try:
|
||||
self.isLoadingChanged.disconnect()
|
||||
self.hasMoreChanged.disconnect()
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
def abortRequest(self, request_id: str) -> None:
|
||||
"""Aborts a single request"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue