[extensions-web/wip/invalid_shell_version] extensions: shell_update: ignore invalid shell versions
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/wip/invalid_shell_version] extensions: shell_update: ignore invalid shell versions
- Date: Tue, 14 Sep 2021 19:08:44 +0000 (UTC)
commit 9b5374e78d26f61eff05db85076d7bfa6dd33c59
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Tue Sep 14 23:08:39 2021 +0400
extensions: shell_update: ignore invalid shell versions
sweettooth/extensions/views.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 10ba39e..bc19f9e 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -162,7 +162,10 @@ def shell_update(request):
# The user may have a newer version than what's on the site.
continue
- proper_version = grab_proper_extension_version(extension, shell_version, disable_version_validation)
+ try:
+ proper_version = grab_proper_extension_version(extension, shell_version,
disable_version_validation)
+ except models.InvalidShellVersion:
+ return HttpResponseBadRequest()
if proper_version is not None:
if version < proper_version.version:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]