File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import platform
1212from datetime import datetime , timezone
1313import dateutil .parser
14- import truststore
1514from enum import Enum , auto
1615import re
1716import typing
7170)
7271from .version import __version__
7372
74- truststore .inject_into_ssl ()
73+ try :
74+ import truststore
75+
76+ truststore .inject_into_ssl ()
77+ except ImportError :
78+ logging .getLogger ("mergin.client" ).warning ("truststore could not be imported, continuing without it" )
7579
7680json_headers = {"Content-Type" : "application/json" }
7781
Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ def pull_project_finalize(job: PullJob):
701701 except NotImplementedError as e :
702702 job .mp .log .error ("Failed to get project info v2 in this server version: " + str (e ))
703703 job .mp .log .info ("--- pull aborted" )
704- raise ClientError ("Failed to get project info v2 as server not support it: " + str (e ))
704+ raise ClientError ("Failed to get project info v2 as server does not support it: " + str (e ))
705705 except ClientError as e :
706706 job .mp .log .error ("Failed to get project info v2: " + str (e ))
707707 job .mp .log .info ("--- pull aborted" )
You can’t perform that action at this time.
0 commit comments