ureddit/ureddit — pull request #9 by talklittle (2012-08-23 16:22:35+00:00)
Title: API: avoid throwing Exception for optional attributes

For example: http://ureddit.com/api?type=class&id=23484

Throws the exception because 'prerequisites' is not set for any classes at the moment.

With this patch, instead of error, gracefully return null.