renamer over.app.Main.exception_handler to over.app.Main.stack_tracer
This commit is contained in:
parent
d0fd7e90c5
commit
5541facfd8
2 changed files with 6 additions and 6 deletions
|
@ -189,7 +189,7 @@ class Main:
|
||||||
...
|
...
|
||||||
|
|
||||||
if handle_exceptions:
|
if handle_exceptions:
|
||||||
sys.excepthook = self.exception_handler
|
sys.excepthook = self.stack_tracer
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'over.app.Main(name="%s")' %(self.name)
|
return 'over.app.Main(name="%s")' %(self.name)
|
||||||
|
@ -344,7 +344,7 @@ class Main:
|
||||||
self.parse_config()
|
self.parse_config()
|
||||||
self.parse_cmdline(cmdline)
|
self.parse_cmdline(cmdline)
|
||||||
|
|
||||||
def exception_handler(self, exception_type, exception, trace):
|
def stack_tracer(self, exception_type, exception, trace):
|
||||||
"""
|
"""
|
||||||
@while formatting a traceback
|
@while formatting a traceback
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
major = 0 # VERSION_MAJOR_IDENTIFIER
|
major = 1 # VERSION_MAJOR_IDENTIFIER
|
||||||
minor = 0 # VERSION_MINOR_IDENTIFIER
|
minor = 99 # VERSION_MINOR_IDENTIFIER
|
||||||
# VERSION_LAST_MM 0.0
|
# VERSION_LAST_MM 1.99
|
||||||
patch = 4 # VERSION_PATCH_IDENTIFIER
|
patch = 0 # VERSION_PATCH_IDENTIFIER
|
||||||
str = ".".join(str(v) for v in (major, minor, patch))
|
str = ".".join(str(v) for v in (major, minor, patch))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue