From a120e9e4d6ed00ea87f79124a3920972d4184db9 Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Mon, 29 Jan 2018 17:30:14 +0530 Subject: [PATCH] Fixed crontab bytes to str --- bench/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bench/utils.py b/bench/utils.py index b6607214..0b8d7931 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -247,6 +247,7 @@ def setup_backups(bench_path='.'): def add_to_crontab(line): current_crontab = read_crontab() + line = str.encode(line) if not line in current_crontab: cmd = ["crontab"] if platform.system() == 'FreeBSD':