diff --git a/sat_frontends/jp/common.py b/sat_frontends/jp/common.py index 27900618..89545d0e 100644 --- a/sat_frontends/jp/common.py +++ b/sat_frontends/jp/common.py @@ -426,7 +426,7 @@ class BaseEdit(object): content_file_obj.seek(0, os.SEEK_END) elif self.args.draft_path: # there is an existing draft that we use - content_file_path = os.path.expanduser(self.args.item) + content_file_path = os.path.expanduser(self.args.draft_path) content_file_obj = open(content_file_path, "r+b") # we seek at the end for the same reason as above content_file_obj.seek(0, os.SEEK_END)