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.

Fixes regression in 9689a6f
  • Loading branch information
bbhtt committed Sep 14, 2024
1 parent 791fd14 commit fd16a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ from urllib.parse import urljoin, urlparse, urlunparse
import aiohttp
import aiohttp.client_exceptions
import gi

gi.require_version("OSTree", "1.0")
from gi.repository import Gio, GLib, OSTree
from tenacity import (
retry,
Expand All @@ -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

Expand Down

0 comments on commit fd16a83

Please sign in to comment.