Skip to content

Commit

Permalink
Use gi.require_version before import and make pygobject the last 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 a95203b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ import traceback
from argparse import ArgumentParser
from functools import reduce
from urllib.parse import urljoin, urlparse, urlunparse

import aiohttp
import aiohttp.client_exceptions
import gi
from gi.repository import Gio, GLib, OSTree
from tenacity import (
retry,
retry_if_exception_type,
stop_after_delay,
wait_random_exponential,
)

import aiohttp
import aiohttp.client_exceptions
import gi

gi.require_version("OSTree", "1.0")
from gi.repository import Gio, GLib, OSTree # noqa: E402

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

0 comments on commit a95203b

Please sign in to comment.