rev122, 40x faster openssl based sign verify, Openssl verify benchmark, Socket objects stat, Dont trace notification stack, uiserver memory leak fix
This commit is contained in:
parent
eb79556bb8
commit
71be41ade0
15 changed files with 636 additions and 12 deletions
|
@ -10,6 +10,7 @@ class Notify(Exception):
|
|||
|
||||
|
||||
def formatException(err=None):
|
||||
if type(err) == Notify: return err
|
||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||
if not err: err = exc_obj.message
|
||||
tb = []
|
||||
|
@ -21,6 +22,7 @@ def formatException(err=None):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
try:
|
||||
print 1/0
|
||||
except Exception, err:
|
||||
|
@ -36,4 +38,10 @@ if __name__ == "__main__":
|
|||
except Exception, err:
|
||||
print err
|
||||
print "Json load error: %s" % formatException(err)
|
||||
|
||||
try:
|
||||
raise Notify("nothing...")
|
||||
except Exception, err:
|
||||
print "Notify: %s" % formatException(err)
|
||||
|
||||
loadJson()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue