diff --git a/pype/ftrack/actions/action_syncToAvalon.py b/pype/ftrack/actions/action_syncToAvalon.py index d907407ac6..9b8176a088 100644 --- a/pype/ftrack/actions/action_syncToAvalon.py +++ b/pype/ftrack/actions/action_syncToAvalon.py @@ -151,7 +151,7 @@ class SyncToAvalon(BaseAction): fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] log_message = "{}/{}/Line: {}".format(exc_type, fname, exc_tb.tb_lineno) self.log.error('Error during syncToAvalon: {}'.format(log_message)) - message = 'Unexpected Error!!! (Please check Log for more information)' + message = 'Unexpected Error - Please check Log for more information' if len(message) > 0: message = "Unable to sync: {}".format(message) diff --git a/pype/ftrack/ftrack_utils.py b/pype/ftrack/ftrack_utils.py index 68c9be6bfb..10a1ee8ef3 100644 --- a/pype/ftrack/ftrack_utils.py +++ b/pype/ftrack/ftrack_utils.py @@ -8,7 +8,7 @@ from pype import lib import avalon.io as io import avalon.api import avalon -from avalon.vendor import toml +from avalon.vendor import toml, jsonschema from app.api import Logger log = Logger.getLogger(__name__) @@ -74,6 +74,7 @@ def get_data(parent, entity, session, custom_attributes): return data def avalon_check_name(entity, inSchema = None): + ValidationError = jsonschema.ValidationError alright = True name = entity['name'] if " " in name: