Skip to content

Commit b3c7fb2

Browse files
committed
Removed singul requirement for execute_python
1 parent e088c03 commit b3c7fb2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

shuffle-tools/1.2.0/src/app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,12 @@ def custom_print(*args, **kwargs):
594594
# Add globals in it too
595595
globals_copy = globals().copy()
596596
globals_copy["print"] = custom_print
597-
globals_copy["singul"] = self.singul
598-
globals_copy["shuffle"] = self.singul
597+
try:
598+
globals_copy["singul"] = self.singul
599+
globals_copy["shuffle"] = self.singul
600+
except Exception as e:
601+
self.logger.info(f"Failed to add singul to python globals: {e}")
602+
599603

600604
# Add self to globals_copy
601605
for key, value in locals().copy().items():

0 commit comments

Comments
 (0)