@@ -121,11 +121,7 @@ def _robotThread(self, robot: TimedRobotPy) -> None:
121
121
print ("Stack trace:" )
122
122
traceback .print_exc ()
123
123
124
- # Alternatively, get the formatted traceback as a string:
125
- # formatted_traceback = traceback.format_exc()
126
- # print(formatted_traceback)
127
-
128
- # Rethrow the exception to propagate it up the call stack
124
+ # Rethrow the exception to propagate it up the call stack
129
125
raise
130
126
131
127
finally :
@@ -171,10 +167,6 @@ def runRobot(self) -> None:
171
167
print ("Stack trace:" )
172
168
traceback .print_exc ()
173
169
174
- # Alternatively, get the formatted traceback as a string:
175
- # formatted_traceback = traceback.format_exc()
176
- # print(formatted_traceback)
177
-
178
170
# Rethrow the exception to propagate it up the call stack
179
171
raise
180
172
finally :
@@ -391,10 +383,6 @@ def startCompetition(self) -> None:
391
383
print ("Stack trace:" )
392
384
traceback .print_exc ()
393
385
394
- # Alternatively, get the formatted traceback as a string:
395
- # formatted_traceback = traceback.format_exc()
396
- # print(formatted_traceback)
397
-
398
386
# Rethrow the exception to propagate it up the call stack
399
387
raise
400
388
@@ -406,10 +394,6 @@ def startCompetition(self) -> None:
406
394
print ("Stack trace:" )
407
395
traceback .print_exc ()
408
396
409
- # Alternatively, get the formatted traceback as a string:
410
- # formatted_traceback = traceback.format_exc()
411
- # print(formatted_traceback)
412
-
413
397
# Rethrow the exception to propagate it up the call stack
414
398
raise
415
399
@@ -439,10 +423,6 @@ def startCompetition(self) -> None:
439
423
print ("Stack trace:" )
440
424
traceback .print_exc ()
441
425
442
- # Alternatively, get the formatted traceback as a string:
443
- # formatted_traceback = traceback.format_exc()
444
- # print(formatted_traceback)
445
-
446
426
# Rethrow the exception to propagate it up the call stack
447
427
raise
448
428
except Exception as e :
@@ -453,10 +433,6 @@ def startCompetition(self) -> None:
453
433
print ("Stack trace:" )
454
434
traceback .print_exc ()
455
435
456
- # Alternatively, get the formatted traceback as a string:
457
- # formatted_traceback = traceback.format_exc()
458
- # print(formatted_traceback)
459
-
460
436
# Rethrow the exception to propagate it up the call stack
461
437
raise
462
438
0 commit comments