Skip to content

Commit 779fad1

Browse files
committed
wip
1 parent 4d8d40a commit 779fad1

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

taskwiki/main.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,22 @@ def note(self):
146146
for vimwikitask in self.tasks:
147147
try:
148148
_cmd = subprocess.check_output(
149-
"taskopen",
150-
"-n",
151-
vimwikitask["id"],
149+
[
150+
"taskopen",
151+
"-n",
152+
str(vimwikitask["id"]),
153+
],
152154
stderr=subprocess.PIPE,
153155
)
154156
except FileNotFoundError as e:
155-
print(e.strerror)
157+
print(str(e.strerror))
158+
return
156159
except subprocess.CalledProcessError as e:
157-
print(e.stderr)
160+
print(str(e.stderr))
161+
return
158162

159-
vim.command("edit " + _cmd.stdout)
163+
print("edit " + _cmd.stdout)
164+
# vim.command("edit " + _cmd.stdout)
160165
break # Add note to only one task
161166

162167
@errors.pretty_exception_handler

0 commit comments

Comments
 (0)