Skip to content

Commit

Permalink
Use gi.require_version before import
Browse files Browse the repository at this point in the history
Otherwise this raises a warning when running flat-manager-client.

Fixes regression in 9689a6f
  • Loading branch information
bbhtt committed Sep 14, 2024
1 parent 791fd14 commit 5e6ef9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ 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,
stop_after_delay,
wait_random_exponential,
)

gi.require_version("OSTree", "1.0")

UPLOAD_CHUNK_LIMIT = 4 * 1024 * 1024
DEFAULT_LIMIT = 2**16

Expand Down

0 comments on commit 5e6ef9b

Please sign in to comment.