projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
98d560f
)
Merge pull request #9493 from jwilk/errno
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 14 May 2016 12:00:11 +0000
(20:00 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 14 May 2016 12:00:11 +0000
(20:00 +0800)
Don't hardcode errno constant
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 03a6a189093240c2c4fb96e6c1e383392e425eda..3917ca9dcd7e9ac430241e887fe7bb813e1a8ba6 100755
(executable)
--- 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