mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
change used method names from 'isAlive' to 'is_alive'
This commit is contained in:
parent
c9981c0eac
commit
6e55202349
2 changed files with 4 additions and 4 deletions
|
|
@ -316,7 +316,7 @@ def main_loop(ftrack_url):
|
|||
statuser_failed_count = 0
|
||||
|
||||
# If thread failed test Ftrack and Mongo connection
|
||||
elif not statuser_thread.isAlive():
|
||||
elif not statuser_thread.is_alive():
|
||||
statuser_thread.join()
|
||||
statuser_thread = None
|
||||
ftrack_accessible = False
|
||||
|
|
@ -359,7 +359,7 @@ def main_loop(ftrack_url):
|
|||
storer_failed_count = 0
|
||||
|
||||
# If thread failed test Ftrack and Mongo connection
|
||||
elif not storer_thread.isAlive():
|
||||
elif not storer_thread.is_alive():
|
||||
if storer_thread.mongo_error:
|
||||
raise MongoPermissionsError()
|
||||
storer_thread.join()
|
||||
|
|
@ -396,7 +396,7 @@ def main_loop(ftrack_url):
|
|||
processor_failed_count = 0
|
||||
|
||||
# If thread failed test Ftrack and Mongo connection
|
||||
elif not processor_thread.isAlive():
|
||||
elif not processor_thread.is_alive():
|
||||
if processor_thread.mongo_error:
|
||||
raise Exception(
|
||||
"Exiting because have issue with acces to MongoDB"
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ class CredentialsDialog(QtWidgets.QDialog):
|
|||
|
||||
# If there is an existing server thread running we need to stop it.
|
||||
if self._login_server_thread:
|
||||
if self._login_server_thread.isAlive():
|
||||
if self._login_server_thread.is_alive():
|
||||
self._login_server_thread.stop()
|
||||
self._login_server_thread.join()
|
||||
self._login_server_thread = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue