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
0b038131
Commit
0b038131
authored
Aug 20, 2019
by
Raphael Beer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: use log() and debug() methods - no print()s
parent
3c3e8481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
backend.py
backend.py
+4
-3
No files found.
backend.py
View file @
0b038131
...
...
@@ -70,9 +70,9 @@ class TwitterSession:
async
with
self
.
_session
.
post
(
'https://twitter.com/sessions'
,
data
=
form_data
,
headers
=
self
.
_headers
)
as
r
:
await
r
.
text
()
if
str
(
r
.
url
)
==
"https://twitter.com/"
:
print
(
"Login of
%
s successful"
%
username
)
log
(
"Login of
%
s successful"
%
username
)
else
:
print
(
"Error logging in
%
s"
%
username
)
log
(
"Error logging in
%
s"
%
username
)
self
.
set_csrf_header
()
self
.
username
=
username
else
:
...
...
@@ -187,7 +187,8 @@ class TwitterSession:
obj
[
"ban"
]
=
True
return
obj
except
:
print
(
traceback
.
format_exc
())
debug
(
'Unexpected Exception:'
)
debug
(
traceback
.
format_exc
())
async
def
test_barrier
(
self
,
user_id
):
try
:
...
...
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