Fixed depricated exception type; fixed siguser type
This commit is contained in:
parent
bdb9c157f7
commit
b78fac0aa5
|
@ -56,7 +56,7 @@ class Application:
|
||||||
try:
|
try:
|
||||||
# kill -SIGUSR2 <pid> from Linux/Unix or SIGBREAK signal from Windows
|
# kill -SIGUSR2 <pid> from Linux/Unix or SIGBREAK signal from Windows
|
||||||
signal.signal(
|
signal.signal(
|
||||||
vars(signal).get("SIGBREAK") or vars(signal).get("SIGUSR1"),
|
vars(signal).get("SIGBREAK") or vars(signal).get("SIGUSR2"),
|
||||||
debug_signal_handler
|
debug_signal_handler
|
||||||
)
|
)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
@ -18,7 +18,7 @@ def debug_signal_handler(signal, frame):
|
||||||
rpdb2.start_embedded_debugger("foobar", True, True)
|
rpdb2.start_embedded_debugger("foobar", True, True)
|
||||||
rpdb2.setbreak(depth=1)
|
rpdb2.setbreak(depth=1)
|
||||||
return
|
return
|
||||||
except StandardError:
|
except Exception:
|
||||||
...
|
...
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -26,7 +26,7 @@ def debug_signal_handler(signal, frame):
|
||||||
logger.debug("\n\nStarting embedded rconsole debugger...\n\n")
|
logger.debug("\n\nStarting embedded rconsole debugger...\n\n")
|
||||||
rconsole.spawn_server()
|
rconsole.spawn_server()
|
||||||
return
|
return
|
||||||
except StandardError as ex:
|
except Exception as ex:
|
||||||
...
|
...
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -34,7 +34,7 @@ def debug_signal_handler(signal, frame):
|
||||||
logger.debug("\n\nStarting PuDB debugger...\n\n")
|
logger.debug("\n\nStarting PuDB debugger...\n\n")
|
||||||
set_trace(paused = True)
|
set_trace(paused = True)
|
||||||
return
|
return
|
||||||
except StandardError as ex:
|
except Exception as ex:
|
||||||
...
|
...
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -42,11 +42,11 @@ def debug_signal_handler(signal, frame):
|
||||||
logger.debug("\n\nStarting embedded PDB debugger...\n\n")
|
logger.debug("\n\nStarting embedded PDB debugger...\n\n")
|
||||||
pdb.Pdb(skip=['gi.*']).set_trace()
|
pdb.Pdb(skip=['gi.*']).set_trace()
|
||||||
return
|
return
|
||||||
except StandardError as ex:
|
except Exception as ex:
|
||||||
...
|
...
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import code
|
import code
|
||||||
code.interact()
|
code.interact()
|
||||||
except StandardError as ex:
|
except Exception as ex:
|
||||||
logger.debug(f"{ex}, returning to normal program flow...")
|
logger.debug(f"{ex}, returning to normal program flow...")
|
Loading…
Reference in New Issue