Exception handling change to work in python 2.6 and 3
This commit is contained in:
parent
646b477e22
commit
2472af646f
|
@ -31,4 +31,6 @@ class PrettyjsonCommand(sublime_plugin.TextCommand):
|
|||
use_decimal=True))
|
||||
|
||||
except Exception:
|
||||
sublime.status_message("Error parsing JSON")
|
||||
import sys
|
||||
exc = sys.exc_info()[1]
|
||||
sublime.status_message(str(exc))
|
||||
|
|
Loading…
Reference in New Issue