sfq 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl

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.
sfq/__init__.py CHANGED
@@ -127,7 +127,10 @@ class SFAuth:
127
127
 
128
128
  def _is_token_expired(self):
129
129
  """Check if the access token has expired."""
130
- return time.time() >= self.token_expiration_time
130
+ try:
131
+ return time.time() >= float(self.token_expiration_time)
132
+ except (TypeError, ValueError):
133
+ return False
131
134
 
132
135
  def query(self, query, tooling=False):
133
136
  """Query Salesforce using SOQL or Tooling API, depending on the `tooling` parameter."""
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: sfq
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Python wrapper for the Salesforce's Query API.
5
5
  Author-email: David Moruzzi <sfq.pypi@dmoruzi.com>
6
6
  Keywords: salesforce,salesforce query
@@ -0,0 +1,5 @@
1
+ sfq/__init__.py,sha256=vcAXd4v6uyjzAqOril31LG2WG2n3l6OHxPiYQA63uD4,6361
2
+ sfq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ sfq-0.0.3.dist-info/METADATA,sha256=y5Ir5XtomFESBbaktjuWzsA2d0Q40qlMIBXx1igISU4,4685
4
+ sfq-0.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ sfq-0.0.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.26.3
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,5 +0,0 @@
1
- sfq/__init__.py,sha256=fn9dqDL6OgRiUugoycL-e1-prr_Heo0CsW-uNLfcj2k,6272
2
- sfq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- sfq-0.0.2.dist-info/METADATA,sha256=ro8AkQIqw2rQ55Cv4NR004_VkCrNhwo4Q5M6mIn87sA,4685
4
- sfq-0.0.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
5
- sfq-0.0.2.dist-info/RECORD,,