Skip to content

Commit

Permalink
Merge pull request #1872 from codeb2cc/encode-error-with-supervisor
Browse files Browse the repository at this point in the history
Fix `UnicodeEncodeError` exception when managed by `supervisord`
  • Loading branch information
ask committed Feb 17, 2014
2 parents bf9ac41 + c5f1c1a commit d059a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/apps/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ def on_start(self):

# Dump configuration to screen so we have some basic information
# for when users sends bug reports.
print(''.join([
print(safe_str(''.join([
string(self.colored.cyan(' \n', self.startup_info())),
string(self.colored.reset(self.extra_info() or '')),
]), file=sys.__stdout__)
])), file=sys.__stdout__)
self.set_process_status('-active-')
self.install_platform_tweaks(self)

Expand Down

0 comments on commit d059a94

Please sign in to comment.