I'm not sure if this is the best way, since I'm pretty new to Python,
but here's an example showing testing for CapabilityDisabledError.  I
think the exception you're looking for is called OverQuotaError.

def handle_exception(self, exception, debug_mode):
  if isinstance(exception, CapabilityDisabledError):
    #Do something...


On Nov 16, 4:34 pm, herbie <[email protected]> wrote:
> Hi  GAE experts
>
> My handler class overrides handle_exception(exception, debug_mode)
> to catch any exceptions not already dealt with.
>
> I'm sure I'm being dumb, but  it's not obvious to me how  test the
> 'exception' argument to see if it is a 'CPU usage over quota'
> exception?
>
> Thanks

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.


Reply via email to