Skip to content

Commit a74fd0d

Browse files
committed
_logger must be assigned before any try..excepts use it.
1 parent 38d0325 commit a74fd0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

microscope/filterwheels/aurox.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@
3838
import microscope.devices
3939
from typing import Mapping
4040
from enum import IntEnum
41+
42+
_logger = logging.getLogger(__name__)
43+
4144
try:
4245
# Currently, clarity_process is a module that is not packaged, so needs
4346
# to be put on the python path somewhere manually.
4447
from clarity_process import ClarityProcessor
4548
except:
4649
_logger.warning("Could not import clarity_process module: no processing available.")
4750

48-
_logger = logging.getLogger(__name__)
4951

5052
Mode = IntEnum("Mode", "difference, raw, calibrate")
5153

0 commit comments

Comments
 (0)