projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'radiojavan' of https://github.com/mtp1376/youtube-dl into mtp1376-radio...
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 245d623d86df365a562fb395bc792b42f68634eb..90e0ed9ab7eb36d4c9f30efffdd2868e9cfe6d47 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-75,7
+75,7
@@
def preferredencoding():
try:
pref = locale.getpreferredencoding()
'TEST'.encode(pref)
- except:
+ except
Exception
:
pref = 'UTF-8'
return pref
@@
-127,7
+127,7
@@
def write_json_file(obj, fn):
except OSError:
pass
os.rename(tf.name, fn)
- except:
+ except
Exception
:
try:
os.remove(tf.name)
except OSError: