Skip to content

Commit

Permalink
Fix print import
Browse files Browse the repository at this point in the history
  • Loading branch information
danijar committed Jun 24, 2024
1 parent 68c60ea commit 8a06f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zerofun/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.1.0'
__version__ = '2.1.1'

import multiprocessing as mp
try:
Expand Down
4 changes: 2 additions & 2 deletions zerofun/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time
import traceback

import embodied
import elements
import numpy as np
import psutil

Expand Down Expand Up @@ -155,7 +155,7 @@ def warn_remote_error(e, name, lock=get_print_lock):
msg += 'Call check() to reraise in main process. '
msg += f'Worker stack trace:\n{full}'
with lock:
embodied.print(msg, color='red')
elements.print(msg, color='red')
if hasattr(e, 'add_note'):
e.add_note(f'\nWorker stack trace:\n\n{full}')

Expand Down

0 comments on commit 8a06f50

Please sign in to comment.