DownloadError: ApplicationError
I have a function called DownloadData() which uses url.fetch()
.
From time to time it throws DownloadError: ApplicationError: 2 timed out error
.
How can I catch this error?
With except DownloadError: ApplicationError: 2 time开发者_开发技巧d
or only DownloadError
?
Thanks,
Joel
Just "except DownloadError:" should work fine. Your second example isn't valid Python, though.
精彩评论