Skip to content

Commit

Permalink
Update taskwiki/util.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Babej <tomas@tbabej.com>
  • Loading branch information
nkakouros and tbabej authored Dec 30, 2021
1 parent 4925c9b commit b497052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskwiki/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def taskopen(args):
p.close(force=True) # make sure the process is ended

except pexpect.exceptions.ExceptionPexpect as e:
if e.value.find("command was not found") > -1:
if "command was not found" in e.value:
return "taskopen is not installed", 127

if p.exitstatus == 3: # xdg-open: no method to open annotation
Expand Down

0 comments on commit b497052

Please sign in to comment.