summaryrefslogtreecommitdiff
path: root/extmod/uasyncio
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/uasyncio')
-rw-r--r--extmod/uasyncio/lock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/uasyncio/lock.py b/extmod/uasyncio/lock.py
index 18a55cb48..bddca295b 100644
--- a/extmod/uasyncio/lock.py
+++ b/extmod/uasyncio/lock.py
@@ -19,7 +19,7 @@ class Lock:
def release(self):
if self.state != 1:
- raise RuntimeError
+ raise RuntimeError("Lock not acquired")
if self.waiting.peek():
# Task(s) waiting on lock, schedule next Task
self.state = self.waiting.pop_head()