mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Housekeeping - removed parts for testing and debugging
Removed delete of publishDir and resourceDir, probably better to keep there empty then deleting
This commit is contained in:
parent
91c3f47923
commit
417358dc7f
1 changed files with 0 additions and 20 deletions
|
|
@ -101,10 +101,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
if instance.data["family"] in ef]:
|
||||
return
|
||||
|
||||
self.log.info("IntegrateAssetNew.process:")
|
||||
import json
|
||||
self.log.debug("instance: {}".format(json.dumps(instance.__dict__, default=str)))
|
||||
|
||||
try:
|
||||
self.register(instance)
|
||||
self.log.info("Integrated Asset in to the database ...")
|
||||
|
|
@ -500,10 +496,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
self.integrated_file_sizes.update(self.integrate(instance))
|
||||
self.log.debug("Integrated files {}".format(self.integrated_file_sizes))
|
||||
|
||||
import random
|
||||
if random.choice([True, False, True, True]):
|
||||
raise Exception("Monkey attack!!!")
|
||||
|
||||
# get 'files' information for representation and all attached resources
|
||||
self.log.debug("Preparing files information ..")
|
||||
representation["files"] = self.get_files_info(instance, self.integrated_file_sizes)
|
||||
|
|
@ -921,15 +913,3 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
self.log.critical("Cannot {} file {}".format(mode, file_url), exc_info=True)
|
||||
raise
|
||||
|
||||
if mode == 'remove':
|
||||
try:
|
||||
publishDir = instance.data.get('publishDir', '')
|
||||
resourcesDir = instance.data.get('resourcesDir', '')
|
||||
if resourcesDir:
|
||||
os.remove(resourcesDir)
|
||||
if publishDir:
|
||||
os.remove(publishDir)
|
||||
except OSError as e:
|
||||
self.log.critical("Cannot remove destination directory {} or {}".format(publishDir, resourcesDir), exc_info=True)
|
||||
raise
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue