Skip to content

Compatibility with 4.26 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hooks/tk-multi-publish2/basic/publish_movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def _unreal_render_sequence_to_movie(self, destination_path, unreal_map_path, se
# Must delete it first, otherwise the Sequencer will add a number in the filename
try:
os.remove(output_filepath)
except OSError, e:
except OSError as e:
self.logger.debug("Couldn't delete {}. The Sequencer won't be able to output the movie to that file.".format(output_filepath))
return False, None

Expand Down
2 changes: 1 addition & 1 deletion python/tk_unreal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# This file has been modified by Epic Games, Inc. and is subject to the license
# file included in this repository.

import unreal_sg_engine
from . import unreal_sg_engine
4 changes: 2 additions & 2 deletions python/tk_unreal/unreal_sg_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import unreal
import sgtk.platform
import config
from . import config
import sys
import os

Expand Down Expand Up @@ -156,7 +156,7 @@ def _execute_within_exception_trap(self):
try:
unreal.log("_execute_within_exception_trap: trying callback {0}".format(self._callback.__str__()))
self._callback()
except Exception, e:
except Exception as e:
current_engine = sgtk.platform.current_engine()
current_engine.logger.exception("An exception was raised from Toolkit")
self._callback = None
Expand Down