Answer the question
In order to leave comments, you need to log in
How not to catch a timeout with the pythonic Dropbox API?
I'm using the Python lib DropboxAPI to upload videos to the cloud. The Internet connection is good, the speed is normal, but from time to time very often the download is interrupted with a timeout. For example, now a 70-megabyte video did not download. If so, here's the exception:
ConnectionError(ProtocolError('Connection aborted.', timeout('The write operation timed out',)),)
Answer the question
In order to leave comments, you need to log in
try:
....
except ConnectionError:
print('Ошибка, надо загружать файл по новой')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question