View tool: IRON images under the data loader, browse and zoom
The data loader's error message now names the script that failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fcd9191a95
commit
647f7f7509
3 files changed
+130
-1
No files matched your search
@@ -64,7 +64,7 @@ class Chargeur(_Pages):
|
||||
args += [f"--{k}={q[k]}" for k in ("du", "au") if q.get(k)]
|
||||
r = subprocess.run(args, capture_output=True, text=True)
|
||||
if r.returncode:
|
||||
return self.send_error(500, "status.py failed", r.stderr[-3000:])
|
||||
return self.send_error(500, f"{Path(self.SCRIPT).name} failed", r.stderr[-3000:])
|
||||
page = Path(r.stdout.strip().splitlines()[-1]).relative_to(ROOT)
|
||||
self.send_response(303)
|
||||
self.send_header("Location", "/" + quote(page.as_posix()))
|
||||
|
||||
Reference in new issue
Block a user