Skip to content

Commit 68a5b8e

Browse files
SG-30560 Code cleanup for qt4 and pyside (#60)
* Qt4 and PySide code cleanup
1 parent 4d16c1c commit 68a5b8e

File tree

1 file changed

+4
-7
lines changed
  • tk_toolchain/cmd_line_tools/tk_docs_generation

1 file changed

+4
-7
lines changed

tk_toolchain/cmd_line_tools/tk_docs_generation/__init__.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,10 @@ def main(arguments=None):
199199
try:
200200
import PySide6 # noqa
201201
except ImportError:
202-
try:
203-
import PySide # noqa
204-
except ImportError:
205-
log.error(
206-
"PySide, PySide2, or PySide6 are required to build the documentation."
207-
)
208-
return 1
202+
log.error(
203+
"PySide2, or PySide6 are required to build the documentation."
204+
)
205+
return 1
209206
# If the specified the core path, we'll use it.
210207
if options.core:
211208
core_path = util.expand_path(options.core)

0 commit comments

Comments
 (0)