diff --git a/flat-manager-client b/flat-manager-client index f7b3ec6..b8e8ad8 100755 --- a/flat-manager-client +++ b/flat-manager-client @@ -33,7 +33,9 @@ from urllib.parse import urljoin, urlparse, urlunparse import aiohttp import aiohttp.client_exceptions import gi -from gi.repository import Gio, GLib, OSTree + +gi.require_version("OSTree", "1.0") +from gi.repository import Gio, GLib, OSTree # noqa: E402 from tenacity import ( retry, retry_if_exception_type, @@ -41,8 +43,6 @@ from tenacity import ( wait_random_exponential, ) -gi.require_version("OSTree", "1.0") - UPLOAD_CHUNK_LIMIT = 4 * 1024 * 1024 DEFAULT_LIMIT = 2**16