Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
388f3d71
Commit
388f3d71
authored
Aug 07, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silence_event_loop_closed changed to do nothing on windows
parent
27fd1ccd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
app.py
app.py
+2
-8
No files found.
app.py
View file @
388f3d71
...
@@ -31,11 +31,7 @@ def silence_event_loop_closed(func):
...
@@ -31,11 +31,7 @@ def silence_event_loop_closed(func):
@wraps
(
func
)
@wraps
(
func
)
def
wrapper
(
self
,
*
args
,
**
kwargs
):
def
wrapper
(
self
,
*
args
,
**
kwargs
):
""" wrapper """
""" wrapper """
try
:
pass
return
func
(
self
,
*
args
,
**
kwargs
)
except
RuntimeError
as
e
:
if
str
(
e
)
!=
'Event loop is closed'
:
raise
return
wrapper
return
wrapper
...
@@ -210,9 +206,7 @@ class KeyboardListener:
...
@@ -210,9 +206,7 @@ class KeyboardListener:
data
=
(
await
self
.
io_loop
.
run_in_executor
(
None
,
input
,
""
))
data
=
(
await
self
.
io_loop
.
run_in_executor
(
None
,
input
,
""
))
try
:
try
:
if
data
.
strip
()
.
lower
()
==
"q"
:
if
data
.
strip
()
.
lower
()
==
"q"
:
self
.
packet_logger
.
save
()
return
self
.
stop
()
self
.
server
.
stop
()
return
except
Exception
:
except
Exception
:
pass
pass
...
...
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