Skip to content

Commit 4220e9d

Browse files
authoredNov 11, 2019
Merge pull request InstaPy#5208 from wsbuck/master
Disabled instagram server checking InstaPy#5207
2 parents c3ad0c8 + 9763177 commit 4220e9d

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed
 

‎CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ The **goal** of this file is explaining to the users of our project the notable
55
_The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)_.
66

77

8+
## [0.6.6] - 2019-11-11
9+
10+
### Changed
11+
12+
- Additional web checks default `False` to avoid erros on runtime
13+
14+
815
## [0.6.5] - 2019-10-20
916

1017
### Added

‎DOCUMENTATION.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1767,15 +1767,15 @@ session = InstaPy(username=insta_username,
17671767
```
17681768

17691769
### Running internet connection checks
1770-
InstaPy performs a few checks online, including you connection and the availability of Instagram servers. These checks sometimes fail because Instapy uses third party services to perform these checks. Nevertheless, you can override these checks with this variable: `want_check_browser`.
1770+
InstaPy can perform a few checks online, including you connection and the availability of Instagram servers. These checks sometimes fail because Instapy uses third party services to perform these checks. If this should be the case. you can override these checks with this variable: `want_check_browser`.
17711771

1772-
`want_check_browser` default is True, you can set it to false at session start. Recommend to do this if experiencing connection errors.
1772+
`want_check_browser` default is False, you can set it to True at session start. Recommend to do this if you want to add additional checks for the connection to the web and Instagram.
17731773

17741774
example:
17751775
```python
17761776
session = InstaPy(username=insta_username,
17771777
password=insta_password,
1778-
want_check_browser=False)
1778+
want_check_browser=True)
17791779
```
17801780

17811781
### Running in threads

‎instapy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# flake8: noqa
22

33
# __variables__ with double-quoted values will be available in setup.py
4-
__version__ = "0.6.5"
4+
__version__ = "0.6.6"
55

66
from .instapy import InstaPy
77
from .util import smart_run

‎instapy/instapy.py

+25-15
Original file line numberDiff line numberDiff line change
@@ -1521,9 +1521,11 @@ def like_by_locations(
15211521

15221522
if self.use_clarifai and (following or commenting):
15231523
try:
1524-
checked_img, temp_comments, clarifai_tags = (
1525-
self.query_clarifai()
1526-
)
1524+
(
1525+
checked_img,
1526+
temp_comments,
1527+
clarifai_tags,
1528+
) = self.query_clarifai()
15271529

15281530
except Exception as err:
15291531
self.logger.error(
@@ -1732,9 +1734,11 @@ def comment_by_locations(
17321734

17331735
if self.use_clarifai:
17341736
try:
1735-
checked_img, temp_comments, clarifai_tags = (
1736-
self.query_clarifai()
1737-
)
1737+
(
1738+
checked_img,
1739+
temp_comments,
1740+
clarifai_tags,
1741+
) = self.query_clarifai()
17381742

17391743
except Exception as err:
17401744
self.logger.error("Image check error: {}".format(err))
@@ -1963,9 +1967,11 @@ def like_by_tags(
19631967

19641968
if self.use_clarifai and (following or commenting):
19651969
try:
1966-
checked_img, temp_comments, clarifai_tags = (
1967-
self.query_clarifai()
1968-
)
1970+
(
1971+
checked_img,
1972+
temp_comments,
1973+
clarifai_tags,
1974+
) = self.query_clarifai()
19691975

19701976
except Exception as err:
19711977
self.logger.error(
@@ -2261,9 +2267,11 @@ def like_by_users(
22612267

22622268
if self.use_clarifai and (following or commenting):
22632269
try:
2264-
checked_img, temp_comments, clarifai_tags = (
2265-
self.query_clarifai()
2266-
)
2270+
(
2271+
checked_img,
2272+
temp_comments,
2273+
clarifai_tags,
2274+
) = self.query_clarifai()
22672275

22682276
except Exception as err:
22692277
self.logger.error(
@@ -2560,9 +2568,11 @@ def interact_by_users(
25602568

25612569
if self.use_clarifai and commenting:
25622570
try:
2563-
checked_img, temp_comments, clarifai_tags = (
2564-
self.query_clarifai()
2565-
)
2571+
(
2572+
checked_img,
2573+
temp_comments,
2574+
clarifai_tags,
2575+
) = self.query_clarifai()
25662576

25672577
except Exception as err:
25682578
self.logger.error(

0 commit comments

Comments
 (0)
Please sign in to comment.