Fixed error handling in train.py
diff --git a/scripts/train.py b/scripts/train.py
index a966368069..b08d1cdf1a 100644
--- a/scripts/train.py
+++ b/scripts/train.py
@@ -178,7 +178,7 @@ def processThread(self):
                 print('Saving model weights has been cancelled!')
             exit(0)
         except Exception as e:
-            print(e)
+            raise e
             exit(1)
 
     def set_tf_allow_growth(self):
@@ -200,4 +200,4 @@ def show(self, image, name=''):
                 cv2.imwrite('_sample_{}.jpg'.format(name), image)
         except Exception as e:
             print("could not preview sample")
-            print(e)
+            raise e

Fixed the error handling in train.py so it doesn't swallow tracelogs.

This is an improvement to follow Python best practices of raising any exceptions that aren't handled so that tracelogs don't get lost.