ourresearch / total-impact-core

An api and backend code to gather the impacts of diverse scholarly products online.
http://impactstory.org
Other
55 stars 7 forks source link

dao.get() should throw a LookupError instead of None for missing doc. #94

Closed jasonpriem closed 11 years ago

jasonpriem commented 12 years ago

Right now we're constantly checking to see if doc = None and then throwing the error in client code. Failure to find something we looked up is an error. If it's not an error in a given circumstance, let client code decide that.