Skip to content

Commit

Permalink
Don't completely remove encode/decode
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed May 1, 2021
1 parent 30da307 commit e0ca3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freqtrade/optimize/hyperopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def _format_results_explanation_string(self, results_metrics: Dict) -> str:
f"Total profit {results_metrics['total_profit']: 11.8f} {stake_cur} "
f"({results_metrics['profit']: 7.2f}\N{GREEK CAPITAL LETTER SIGMA}%). "
f"Avg duration {results_metrics['duration']:5.1f} min."
)
).encode('utf-8', 'replace').decode('utf-8')

def get_optimizer(self, dimensions: List[Dimension], cpu_count) -> Optimizer:
return Optimizer(
Expand Down

0 comments on commit e0ca3c0

Please sign in to comment.