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):
|
def handleException(exception, value, tb):
|
||||||
import traceback
|
import traceback
|
||||||
import exceptions
|
import exceptions
|
||||||
|
import xml
|
||||||
from pisi.ui import ui
|
from pisi.ui import ui
|
||||||
|
|
||||||
if exception == exceptions.KeyboardInterrupt:
|
if exception == exceptions.KeyboardInterrupt:
|
||||||
ui.error("\nKeyboardInterrupt: Exiting...\n")
|
ui.error("\nKeyboardInterrupt: Exiting...\n")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
elif exception == xml.parsers.expat.ExpatError:
|
||||||
|
ui.error("Invalid XML: " + str(value)+'\n')
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
ui.error("""
|
ui.error("""
|
||||||
Internal PISI Error:
|
Internal PISI Error:
|
||||||
|
|||||||
Reference in New Issue
Block a user