add try-except clause for get_recent()