Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hiro
GetTor
Commits
326175d0
Commit
326175d0
authored
Aug 31, 2019
by
Hiro
🏄
Browse files
Update script add_links_to_db
parent
755608ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/add_links_to_db
View file @
326175d0
...
...
@@ -61,7 +61,7 @@ def main():
webFile
=
request
.
urlopen
(
TOR_BROWSER_DOWNLOADS
)
content
=
webFile
.
read
()
jsonObj
=
json
.
loads
(
content
)
jsonObj
=
json
.
loads
(
content
.
json
()
)
version
=
jsonObj
.
get
(
"version"
,
None
)
if
version
is
None
:
print
(
"Could not fetch version from {}."
.
format
(
TOR_BROWSER_DOWNLOADS
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment