FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/src/cefpython3.wx/utils.py at cefpython55 · netdebug/cefpython · GitHub
netdebug
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
src
/
cefpython3.wx
/
utils.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 753 Bytes
Breadcrumbs
cefpython
/
src
/
cefpython3.wx
/
utils.py
Copy path
File metadata and controls
19 lines (17 loc) · 753 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Additional and wx specific layer of abstraction for the cefpython
# __author__ = "Greg Kacy <grkacy@gmail.com>"
#-------------------------------------------------------------------------------
def
ExceptHook
(
excType
,
excValue
,
traceObject
):
import
traceback
,
os
errorMsg
=
"
\n
"
.
join
(
traceback
.
format_exception
(
excType
,
excValue
,
traceObject
))
if
type
(
errorMsg
)
==
bytes
:
errorMsg
=
errorMsg
.
decode
(
encoding
=
"ascii"
,
errors
=
"replace"
)
else
:
errorMsg
=
errorMsg
.
encode
(
"ascii"
,
errors
=
"replace"
)
errorMsg
=
errorMsg
.
decode
(
"ascii"
,
errors
=
"replace"
)
print
(
"
\n
"
+
errorMsg
+
"
\n
"
)
#cefpython.QuitMessageLoop()
#cefpython.Shutdown()
# So that "finally" does not execute.
#os._exit(1)
Back
|
FazBrowse Home
|
New Git URL