Be explicit about the value and tb parameters.
See https://github.com/adafruit/circuitpython/issues/7482
This commit is contained in:
@@ -45,7 +45,7 @@ class CollisionAvoid:
|
|||||||
robot.set_left(self.speed)
|
robot.set_left(self.speed)
|
||||||
await asyncio.sleep(0)
|
await asyncio.sleep(0)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
send_json({"exception": traceback.format_exception(e)})
|
send_json({"exception": traceback.format_exception(e, e, e.__traceback__)})
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def get_random_sample(mean, scale):
|
def get_random_sample(mean, scale):
|
||||||
@@ -259,7 +259,7 @@ class Simulation:
|
|||||||
self.motion_model()
|
self.motion_model()
|
||||||
self.print_pc_lines()
|
self.print_pc_lines()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
send_json({"exception": traceback.format_exception(e)})
|
send_json({"exception": traceback.format_exception(e, e, e.__traceback__)})
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
collision_avoider.cancel()
|
collision_avoider.cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user