jp (common): fixed draft path use in BaseEdit

This commit is contained in:
Goffi 2019-08-26 09:14:58 +02:00
commit b8e9212b8d

View file

@ -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)