mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: fix utf8 error 'unicode' object has no attribute 'getiterator'
This commit is contained in:
parent
eda39b5de2
commit
44257be486
1 changed files with 2 additions and 2 deletions
|
|
@ -783,7 +783,7 @@ class OpenClipSolver:
|
|||
if xml_clip.find("name").text in self.feed_basename:
|
||||
matching_clip = xml_clip
|
||||
|
||||
if not matching_clip:
|
||||
if matching_clip is not None:
|
||||
# return warning there is missing clip
|
||||
raise ET.ParseError(
|
||||
"Missing clip in `{}`. Available clips {}".format(
|
||||
|
|
@ -937,7 +937,7 @@ class OpenClipSolver:
|
|||
def _fix_xml_data(self, xml_data):
|
||||
xml_root = xml_data.getroot()
|
||||
self._clear_handler(xml_root)
|
||||
return ET.tostring(xml_root).decode('utf-8')
|
||||
return xml_root
|
||||
|
||||
def _write_result_xml_to_file(self, file, xml_data):
|
||||
# save it as new file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue