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:
parent
1cf00667e9
commit
a120e9e4d6
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user