We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2037433 commit a10703aCopy full SHA for a10703a
brython/async/aio/main.py
@@ -1,5 +1,4 @@
1
from browser import aio, document
2
-import javascript
3
4
5
def log(message):
brython/async/ajax/main.py
from browser import ajax, document
def show_text(req):
@@ -24,9 +23,8 @@ def ajax_get_blocking(evt):
24
23
try:
25
ajax.get("/api.txt", blocking=True, oncomplete=show_text)
26
except Exception as exc:
27
- log(
28
- f"Error: {exc.__name__} - Did you start a web server (ex: 'python3 -m http.server')?"
29
- )
+ log(f"Error: {exc.__name__}")
+ log("Did you start a web server (ex: 'python3 -m http.server')?")
30
else:
31
log("After blocking get")
32
0 commit comments