Merge pull request #5270 from achillesrasquinha/py3-returns

fix classType
This commit is contained in:
Achilles Rasquinha 2018-03-25 23:11:54 +05:30 committed by GitHub
commit b9bbcc35ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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