Commit be72f6d8 authored by Jan Reimes's avatar Jan Reimes
Browse files

🎨 style(factory): update exception handling syntax for Python 2 compatibility

parent 7cf857f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ try:
    from concurrent.futures import InterpreterPoolExecutor

    HAS_INTERPRETER_POOL_EXECUTOR = True
except (ImportError, AttributeError):
except ImportError, AttributeError:
    InterpreterPoolExecutor = None  # type: ignore[assignment, misc]
    HAS_INTERPRETER_POOL_EXECUTOR = False

+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ from functools import partial

try:
    from concurrent.futures import InterpreterPoolExecutor
except (ImportError, AttributeError):
except ImportError, AttributeError:
    InterpreterPoolExecutor = None  # type: ignore[misc]

import pytest