Skip to content

Commit

Permalink
Twarc.connect needs to catch timeout errors too it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Apr 12, 2020
1 parent c910212 commit 5c4f7b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup

# Also in twarc/__init__.py
__version__ = '1.8.2'
__version__ = '1.8.3'

with open("README.md") as f:
long_description = f.read()
Expand Down
2 changes: 1 addition & 1 deletion twarc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.8.2' # also in setup.py
__version__ = '1.8.3' # also in setup.py

from .client import Twarc
from .command import main
1 change: 1 addition & 0 deletions twarc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ def post(self, *args, **kwargs):
kwargs['connection_error_count'] = connection_error_count
return self.post(*args, **kwargs)

@catch_timeout
def connect(self):
"""
Sets up the HTTP session to talk to Twitter. If one is active it is
Expand Down

0 comments on commit 5c4f7b2

Please sign in to comment.