aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-14 20:00:11 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-14 20:00:11 +0800
commit707bb426b16c69c93d593a3e3b68322a8691afd4 (patch)
tree9ee5c3a4c0351457b85cf448de590a0a1892ea99 /youtube_dl/YoutubeDL.py
parent98d560f205e6aeddc767844d142b00525a9eaff9 (diff)
parent66e7ace17a36ed0f761ae620801e9e27d5c3cb3f (diff)
Merge pull request #9493 from jwilk/errno
Don't hardcode errno constant
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 03a6a1890..3917ca9dc 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -326,7 +326,7 @@ class YoutubeDL(object):
['fribidi', '-c', 'UTF-8'] + width_args, **sp_kwargs)
self._output_channel = os.fdopen(master, 'rb')
except OSError as ose:
- if ose.errno == 2:
+ if ose.errno == errno.ENOENT:
self.report_warning('Could not find fribidi executable, ignoring --bidi-workaround . Make sure that fribidi is an executable file in one of the directories in your $PATH.')
else:
raise