Skip to content
Snippets Groups Projects
Commit 8e428518 authored by inso's avatar inso
Browse files

Fix bug #294

parent 48071453
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ import sys ...@@ -8,6 +8,8 @@ import sys
import asyncio import asyncio
import logging import logging
import os import os
import traceback
# To force cx_freeze import # To force cx_freeze import
import PyQt5.QtSvg import PyQt5.QtSvg
...@@ -45,6 +47,10 @@ def async_exception_handler(loop, context): ...@@ -45,6 +47,10 @@ def async_exception_handler(loop, context):
for ignored in ("Unclosed", "socket.gaierror"): for ignored in ("Unclosed", "socket.gaierror"):
if ignored in line: if ignored in line:
return return
for line in traceback.format_exception(*exc_info):
for ignored in ("Unclosed", "socket.gaierror"):
if ignored in line:
return
os._exit(1) os._exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment