Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions mergin/client_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@
import tempfile
import concurrent.futures
import os
from pygeodiff import (
GeoDiff,
GeoDiffLibError,
GeoDiffLibConflictError,
GeoDiffLibUnsupportedChangeError,
GeoDiffLibVersionError,
)

from .common import UPLOAD_CHUNK_SIZE, ClientError
from .merginproject import MerginProject
from .merginproject import MerginProject, pygeodiff
from .editor import filter_changes
from .utils import cleanup_tmp_dir

Expand Down Expand Up @@ -338,12 +331,12 @@ def _geodiff_changes_count(mp: MerginProject, diff_rel_path: str):

diff_abs = mp.fpath_meta(diff_rel_path)
try:
return GeoDiff().changes_count(diff_abs)
return pygeodiff.GeoDiff().changes_count(diff_abs)
except (
GeoDiffLibError,
GeoDiffLibConflictError,
GeoDiffLibUnsupportedChangeError,
GeoDiffLibVersionError,
pygeodiff.GeoDiffLibError,
pygeodiff.GeoDiffLibConflictError,
pygeodiff.GeoDiffLibUnsupportedChangeError,
pygeodiff.GeoDiffLibVersionError,
FileNotFoundError,
):
return None
Expand Down
Loading