surfdataverse 4.1.1__tar.gz → 4.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: surfdataverse
3
- Version: 4.1.1
3
+ Version: 4.1.2
4
4
  Summary: A Python package for ionysis Microsoft Dataverse integration
5
5
  Keywords: dataverse,microsoft,crm,api
6
6
  Author: ionysis
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "surfdataverse"
7
- version = "4.1.1"
7
+ version = "4.1.2"
8
8
  description = "A Python package for ionysis Microsoft Dataverse integration"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -102,6 +102,10 @@ class DataverseClient:
102
102
  self.account = accounts[0]
103
103
  logger.info("Acquiring token silently")
104
104
  result = self.app.acquire_token_silent(scopes=scope, account=self.account)
105
+ if result is None:
106
+ logger.info("No token found in cache for the account, will need interactive login")
107
+ result = self.app.acquire_token_interactive(scope)
108
+
105
109
  logger.info(
106
110
  f"Silent token result: {result.keys() if isinstance(result, dict) else type(result)}"
107
111
  )
File without changes