mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
Add error codes to our custom errors (#959)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { Runtime } from '../runtime';
|
||||
import type { PyProxy } from 'pyodide';
|
||||
import { getLogger } from '../logger';
|
||||
import { robustFetch } from '../fetch';
|
||||
|
||||
const logger = getLogger('py-register-widget');
|
||||
|
||||
@@ -92,7 +93,7 @@ export function make_PyWidget(runtime: Runtime) {
|
||||
}
|
||||
|
||||
async getSourceFromFile(s: string): Promise<string> {
|
||||
const response = await fetch(s);
|
||||
const response = await robustFetch(s);
|
||||
return await response.text();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user