aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2018-04-19 17:10:42 +0200
committercodl <[email protected]>2018-04-19 17:10:42 +0200
commit06e32c14bcb5a1ef1a5e618a1b413ea011416c9d (patch)
tree9160d7345b52758520aca47fb3e376bfea8c8b89 /mastodon/Mastodon.py
parent2afc50c803177fc282fac1a19fcd40e175d55f2d (diff)
downloadmastodon.py-06e32c14bcb5a1ef1a5e618a1b413ea011416c9d.tar.gz
raise MastodonReadTimeout when a stream times out
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 5461661..49597ca 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1872,6 +1872,10 @@ class MastodonNetworkError(MastodonIOError):
1872 """Raised when network communication with the server fails""" 1872 """Raised when network communication with the server fails"""
1873 pass 1873 pass
1874 1874
1875class MastodonReadTimeout(MastodonNetworkError):
1876 """Raised when a stream times out"""
1877 pass
1878
1875 1879
1876class MastodonAPIError(MastodonError): 1880class MastodonAPIError(MastodonError):
1877 """Raised when the mastodon API generates a response that cannot be handled""" 1881 """Raised when the mastodon API generates a response that cannot be handled"""
Powered by cgit v1.2.3 (git 2.41.0)