From 59054cc1e58c241909f1ecba1ebc33ada01e3e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 2 Mar 2023 15:34:39 +0100 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A5=85=20Don't=20send=20`None`=20to?= =?UTF-8?q?=20`Locale.parse`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The latest version of Babel no longer supports this but raises an error, which in turn leads to a 500 Server Error response here. To fix this, we set a default for best_match. Closes #4744 --- src/octoprint/server/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 659d83bd0..48568133c 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -1349,7 +1349,7 @@ class Server: ): return Locale.negotiate([default_language], LANGUAGES) - return Locale.parse(request.accept_languages.best_match(LANGUAGES)) + return Locale.parse(request.accept_languages.best_match(LANGUAGES, default="en")) def _setup_heartbeat_logging(self): logger = logging.getLogger(__name__ + ".heartbeat") From 6e009d25441b3e9a15e335844c4d8f11ad13fe6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 2 Mar 2023 15:51:32 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=96=20Preparing=20release=20of=201?= =?UTF-8?q?.8.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUPPORTERS.md | 12 +++++++----- setup.py | 2 +- src/octoprint/plugins/errortracking/__init__.py | 8 +++++--- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 4edb73897..e2a70859c 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -11,33 +11,36 @@ thanks to everyone who contributed! * Al Mucci * Arnljot Arntsen * Ash King + * Ben Fritsch * BigTreeTech * Boris Hussein * Brad Jackson - * Calvin Vette * Christian Petropolis * Christian Wolf * Christian Würthner * Christoph Sigrist - * Codense Consulting Oy + * CooperSpartan * Creality3D * DeltaMaker 3D Printers * Dennis Breining + * Douglas Floyd + * Ed Crump * Ernesto Martinez * Franziska Kunsmann * Hog Duske + * Jacob Renstrom * James Mackay * Jeff Green * Jeff Moe * jeffiel * Jeremy Cole + * John Cassel * Julian Melo * Justin Kaufman * Kaile Riser * Kazuhiro Ogura * Kenneth Jiang * Kurt Wubbels - * Kyle Menigoz * Lachlan Bell * Lefteris Lertas * LulzBot @@ -65,7 +68,6 @@ thanks to everyone who contributed! * Stefan Krister * Steve Dougherty * Steve Thompson - * TJ Horner * Ulrich Kempken -and 2145 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! +and 2036 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! diff --git a/setup.py b/setup.py index 73c625257..1c4da3af5 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ SETUP_REQUIRES = [] bundled_plugins = [ "OctoPrint-FileCheck>=2021.2.23", "OctoPrint-FirmwareCheck>=2021.10.11", - "OctoPrint-PiSupport>=2022.3.28", + "OctoPrint-PiSupport>=2022.6.13", ] core_deps = [ "argon2_cffi>=21.3.0,<22", diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index cb633a65c..08d7aff77 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -18,10 +18,10 @@ from octoprint.util.version import ( ) SENTRY_URL_SERVER = ( - "https://faa02914ec8f42139e12a36482cfdb60@o118517.ingest.sentry.io/1373987" + "https://9c242ccf183444eaacd046d86d8b0ea2@o118517.ingest.sentry.io/1373987" ) SENTRY_URL_COREUI = ( - "https://be7a53389fb045b48d6c384bb8ee89eb@o118517.ingest.sentry.io/1374096" + "https://4d9844043596415faa606ff722174b90@o118517.ingest.sentry.io/1374096" ) SETTINGS_DEFAULTS = { @@ -158,7 +158,9 @@ def _enable_errortracking(): unique_id = str(uuid.uuid4()) s.set( - ["plugins", "errortracking", "unique_id"], unique_id, defaults=plugin_defaults + ["plugins", "errortracking", "unique_id"], + unique_id, + defaults=plugin_defaults, ) s.save() From d813a0cc86734a6f8bee75a56579bab66787ebf6 Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Mon, 30 May 2022 10:04:51 +0100 Subject: [PATCH 3/3] :arrow_up: Bump wrapt to fix Python 3.11 compatibility (#4530) Fully tested on 3.7, 3.10 and 3.11 - any issues that did exist appear to have been resolved. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1c4da3af5..89b9dd10d 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ core_deps = [ "watchdog>=1,<2", "websocket-client>=1.2.1,<2", "werkzeug>=2.0,<2.1", # breaking changes can happen on minor version increases, flask-login 0.5 is incompatible with 2.1 - "wrapt>=1.13.3,<1.14", + "wrapt>=1.14,<1.15", "zeroconf>=0.33,<0.34", # breaking changes can happen on minor version increases "zipstream-ng>=1.3.4,<2.0.0", ]