This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[utils] Return default on fail in int_or_none
totalwebcasting
Sergey M․
9 years ago
parent
caf80631f0
commit
af98f8ff37
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
youtube_dl/utils.py
+ 1
- 1
youtube_dl/utils.py
View File
@ -1376,7 +1376,7 @@ def int_or_none(v, scale=1, default=None, get_attr=None, invscale=1):
try
:
return
int
(
v
)
*
invscale
/
/
scale
except
ValueError
:
pass
return
default
def
str_or_none
(
v
,
default
=
None
)
:
Write
Preview
Loading…
Cancel
Save