Skip to content

Commit 15f90fe

Browse files
committed
warrior.py: Fix Python 3 detecting missing task
Replaces `'foo' in e` with `'foo' in str(e)`. Fixes ralphbean#127
1 parent 11e2f91 commit 15f90fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taskw/warrior.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def get_version(cls):
554554
stdout=subprocess.PIPE
555555
).communicate()[0]
556556
except OSError as e:
557-
if 'No such file or directory' in e:
557+
if 'No such file or directory' in str(e):
558558
raise OSError("Unable to find the 'task' command-line tool.")
559559
raise
560560
return LooseVersion(taskwarrior_version.decode())

0 commit comments

Comments
 (0)