Skip to content

Commit 415fccb

Browse files
minor formatting
1 parent a3df955 commit 415fccb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gnewsclient/gnewsclient.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def set_params(self):
105105

106106
# setting location
107107
if self.location != None:
108-
self.params['geo'] = self.location
109-
# topic overrides location parameter. So, overriding it.
110-
self.params['topic'] = None
108+
self.params['geo'] = self.location
109+
# topic overrides location parameter. So, overriding it.
110+
self.params['topic'] = None
111111

112112
# params setting successful
113113
return True
@@ -144,6 +144,6 @@ def scrape_feed(self, soup):
144144
if len(articles)==0:
145145
raise NotFound
146146
except NotFound:
147-
print("The articles for the given response are not found")
148-
return
147+
print("The articles for the given response are not found.")
148+
return
149149
return articles

0 commit comments

Comments
 (0)