Merge pull request #5270 from achillesrasquinha/py3-returns
fix classType
This commit is contained in:
commit
b9bbcc35ce
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import cgitb
|
|||
import types
|
||||
import datetime
|
||||
import json
|
||||
import six
|
||||
|
||||
def make_error_snapshot(exception):
|
||||
if frappe.conf.disable_error_snapshot:
|
||||
|
|
@ -49,7 +50,7 @@ def get_snapshot(exception, context=10):
|
|||
"""
|
||||
|
||||
etype, evalue, etb = sys.exc_info()
|
||||
if isinstance(etype, types.ClassType):
|
||||
if isinstance(etype, six.class_types):
|
||||
etype = etype.__name__
|
||||
|
||||
# creates a snapshot dict with some basic information
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue