Commit ab96c0c4 authored by mirandaa's avatar mirandaa
Browse files

fix: imptove error loging

parent 9ed924a3
......@@ -102,9 +102,11 @@ class MyFrame(MyFrame2):
self.m_statuslog.WriteText('Starting filepath '+ filepath + '\n')
try:
self.run_once(filepath, onefile)
except :
except Exception as e:
self.m_statuslog.WriteText('\n *** THERE WAS A PROBLEM PROCESSING THE FILE *** \n'+ filepath+ '\n')
self.m_statuslog.WriteText(str(e))
print(e)
self.m_statuslog.WriteText('finished filepath '+ filepath+ '\n')
self.m_statuslog.WriteText('=========================='+ '\n')
......@@ -224,4 +226,4 @@ class MyFrame(MyFrame2):
if __name__ == '__main__':
main()
\ No newline at end of file
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment