Fix 500 on tweet not found
This commit is contained in:
@@ -228,7 +228,7 @@ def vnfFromCacheOrDL(video_link):
|
|||||||
elif 'suspended' in exErr.msg:
|
elif 'suspended' in exErr.msg:
|
||||||
exErr.msg=msgs.tweetSuspended
|
exErr.msg=msgs.tweetSuspended
|
||||||
else:
|
else:
|
||||||
exErr.msg=None
|
exErr.msg=msgs.tweetNotFound
|
||||||
log.error("VNF Get failed: " + video_link + " " + str(exErr))
|
log.error("VNF Get failed: " + video_link + " " + str(exErr))
|
||||||
return None,exErr.msg
|
return None,exErr.msg
|
||||||
except TwitterHTTPError as twErr:
|
except TwitterHTTPError as twErr:
|
||||||
|
Reference in New Issue
Block a user