Skip to content

Commit 4cb0313

Browse files
committed
har_trees: Remove exception handling
Makes debugging harder
1 parent ee5df63 commit 4cb0313

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

examples/har_trees/har_live.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,5 @@ def main():
267267

268268

269269
if __name__ == '__main__':
270-
try:
271-
main()
272-
except KeyboardInterrupt:
273-
raise
274-
except Exception as e:
275-
print('unhandled-exception', e)
276-
machine.reset()
270+
main()
271+

examples/har_trees/har_record.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,5 @@ async def run():
180180
asyncio.run(run())
181181

182182
if __name__ == '__main__':
183-
try:
184-
main()
185-
except KeyboardInterrupt:
186-
raise
187-
except Exception as e:
188-
print('unhandled-exception', e)
189-
machine.reset()
183+
main()
184+

0 commit comments

Comments
 (0)