Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
shadowban-eu-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
shadowban-eu-backend
Commits
777d7476
Commit
777d7476
authored
Dec 03, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
what
parent
56af8d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
backend.py
backend.py
+4
-2
No files found.
backend.py
View file @
777d7476
...
...
@@ -185,8 +185,10 @@ class TwitterSession:
self
.
set_csrf_header
()
await
self
.
refresh_old_token
()
try
:
async
with
await
self
.
_session
.
get
(
url
,
headers
=
self
.
_headers
)
as
r
:
result
=
await
r
.
json
()
# async with await self._session.get(url, headers=self._headers) as r:
# result = await r.json()
r
=
await
self
.
_session
.
get
(
url
,
headers
=
self
.
_headers
)
result
=
await
r
.
json
()
except
Exception
as
e
:
debug
(
"EXCEPTION: "
+
str
(
type
(
e
)))
debug
(
"EXCEPTION text: "
+
str
(
e
))
...
...
Write
Preview
Markdown
is supported
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