Menu

#4 Throw an exception when an error is returned

closed
None
5
2007-08-19
2007-08-10
No

The Pythonic way of building things is to throw an exception when an error occurs. The advantage is that it can only be explicitly ignored. Right now it's too easy to miss an error condition. If an error needs to be ignored, it's easy enough to catch the exception, especially if we throw something we've invented ourselves, like a FlickrException class.

Discussion

  • Sybren A. Stüvel

    Logged In: YES
    user_id=549047
    Originator: YES

    Fixed in SVN revision 29, and will be included in version 0.12.

     
  • Sybren A. Stüvel

    • assigned_to: nobody --> bustersnyvel
    • status: open --> closed
     

Log in to post a comment.