2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

Fixed crontab bytes to str

This commit is contained in:
Achilles Rasquinha 2018-01-29 17:30:14 +05:30
parent 1cf00667e9
commit a120e9e4d6

View File

@ -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':