[utils] Add try_get
authorSergey M․ <dstftw@gmail.com>
Sat, 11 Jun 2016 23:05:34 +0000 (06:05 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 11 Jun 2016 23:05:34 +0000 (06:05 +0700)
commit329ca3bef695bff011ed9b2d5f03e1331bf5bf0f
tree0d644ffdb698d623a0af4354d1ac171c26b84804
parent2c3322e36ef23eb0566b820dd8e8711de20ed963
[utils] Add try_get

To reduce boilerplate when accessing JSON
youtube_dl/utils.py