aegis-framework 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aegis/core/window.py +6 -2
- package/package.json +1 -1
package/aegis/core/window.py
CHANGED
|
@@ -767,10 +767,14 @@ class AegisWindow(Gtk.Window):
|
|
|
767
767
|
}
|
|
768
768
|
GLib.idle_add(self._send_response, callback_id, result)
|
|
769
769
|
else:
|
|
770
|
-
|
|
770
|
+
# aria2c failed (e.g., snap sandbox restrictions) - fallback to urllib
|
|
771
|
+
print(f"[Aegis] aria2c failed (code {process.returncode}), falling back to urllib")
|
|
772
|
+
self._download_with_urllib(url, dest, callback_id)
|
|
771
773
|
|
|
772
774
|
except Exception as e:
|
|
773
|
-
|
|
775
|
+
# On any error, fallback to urllib
|
|
776
|
+
print(f"[Aegis] aria2c error: {e}, falling back to urllib")
|
|
777
|
+
self._download_with_urllib(url, dest, callback_id)
|
|
774
778
|
|
|
775
779
|
def _download_with_urllib(self, url, dest, callback_id):
|
|
776
780
|
"""Fallback download using urllib (single connection)"""
|
package/package.json
CHANGED