Commit 4b731968 authored by Gaute Hope's avatar Gaute Hope

add default values for output, display and command_d for get_job_data

parent 29bc71a4
......@@ -663,6 +663,7 @@ class Crontab:
desc = d[5:d.find ("\n")]
d = d[d.find ("\n") + 1:]
output = 0
if (ver >= 2) and (ver < 4):
output_str = d[9:d.find ("\n")]
output = int (output_str)
......@@ -673,12 +674,14 @@ class Crontab:
output = int (output_str)
d = d[d.find ("\n") + 1:]
display = ""
if ver >= 4:
display = d[8:d.find ("\n")]
d = d[d.find ("\n") + 1:]
if (len (display) < 1) or (output < 2):
display = ""
command_d = ""
if ver >= 5:
command_d = d[10:d.find ("\n")]
d = d[d.find ("\n") + 1:]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment