diff --git a/pype/plugins/global/publish/extract_burnin.py b/pype/plugins/global/publish/extract_burnin.py index 2f5d23a676..ae53a16917 100644 --- a/pype/plugins/global/publish/extract_burnin.py +++ b/pype/plugins/global/publish/extract_burnin.py @@ -6,8 +6,6 @@ import copy import pype.api import pyblish -StringType = type("") - class ExtractBurnin(pype.api.Extractor): """ @@ -670,14 +668,14 @@ class ExtractBurnin(pype.api.Extractor): if not item: continue - if not isinstance(item, StringType): + try: + regexes.append(re.compile(item)) + except TypeError: self.log.warning(( "Invalid type \"{}\" value \"{}\"." - " Expected . Skipping." + " Expected string based object. Skipping." ).format(str(type(item)), str(item))) - continue - regexes.append(re.compile(item)) return regexes def validate_value_by_regexes(self, value, in_list): diff --git a/pype/plugins/global/publish/extract_review.py b/pype/plugins/global/publish/extract_review.py index 063a3cb25e..4eeb526a19 100644 --- a/pype/plugins/global/publish/extract_review.py +++ b/pype/plugins/global/publish/extract_review.py @@ -8,8 +8,6 @@ import clique import pype.api import pype.lib -StringType = type("") - class ExtractReview(pyblish.api.InstancePlugin): """Extracting Review mov file for Ftrack