xml hatalarını yazmak için geçici çözüm.
This commit is contained in:
@@ -18,11 +18,15 @@ from pisi.ui import ui
|
||||
def handleException(exception, value, tb):
|
||||
import traceback
|
||||
import exceptions
|
||||
import xml
|
||||
from pisi.ui import ui
|
||||
|
||||
if exception == exceptions.KeyboardInterrupt:
|
||||
ui.error("\nKeyboardInterrupt: Exiting...\n")
|
||||
sys.exit(1)
|
||||
elif exception == xml.parsers.expat.ExpatError:
|
||||
ui.error("Invalid XML: " + str(value)+'\n')
|
||||
sys.exit(1)
|
||||
|
||||
ui.error("""
|
||||
Internal PISI Error:
|
||||
|
||||
Reference in New Issue
Block a user