Cleanup logic a little.  Check args first, then try to create the
object.  This avoids creation + decref if bogus arguments are passed.
1 file changed