[reverbnation] The 'uploader_id' field must be a string

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-08-10 11:00:14 +02:00
parent 511c4325dc
commit 40a90862f4
2 changed files with 6 additions and 3 deletions

View file

@ -1275,6 +1275,9 @@ def int_or_none(v, scale=1, default=None, get_attr=None, invscale=1):
v = getattr(v, get_attr, None)
return default if v is None else (int(v) * invscale // scale)
def str_or_none(v, default=None):
return default if v is None else compat_str(v)
def str_to_int(int_str):
if int_str is None: