Skip to content

Commit f003258

Browse files
committed
Use proper Warning class so it raises normally.
1 parent b2c790b commit f003258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runmanager/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,8 @@ def get_shot_globals(filepath):
923923
"""
924924

925925
warnings.warn(
926-
DeprecationWarning("This function has moved to labscript_utils.shot_utils. "
927-
"Please update your code to import it from there."))
926+
FutureWarning("get_shot_globals has moved to labscript_utils.shot_utils. "
927+
"Please update your code to import it from there."))
928928

929929
return labscript_utils.shot_utils.get_shot_globals(filepath)
930930

0 commit comments

Comments
 (0)