ga-api-client 0.3.0__tar.gz → 0.3.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.1
2
2
  Name: ga-api-client
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Operating System :: OS Independent
@@ -112,7 +112,7 @@ class Client:
112
112
  # TODO: if url is wrong, the result might not be JSON
113
113
  bringup = await resp.json()
114
114
  # do captcha when enabled
115
- if bringup['tenantID'] is not None:
115
+ if bringup.get('tenantID') is not None:
116
116
  self.tenantID = bringup['tenantID']
117
117
  if bringup['captchaEnabled']:
118
118
  logging.info(f'captcha')
@@ -206,6 +206,9 @@ class Client:
206
206
  else:
207
207
  logging.error(f'{method} {path} - {e}, fail')
208
208
  raise e
209
+ except Exception as e:
210
+ logging.error(f'{method} {path} - {e}, fail')
211
+ raise e
209
212
 
210
213
  class System(Client):
211
214
  def __init__(self, url, user=None, password=None, ssl=True, retry=0, conn_timeout=30, read_timeout=300):
@@ -632,6 +635,7 @@ class Adhoc:
632
635
  try:
633
636
  rlts = await asyncio.gather(*tasks)
634
637
  except Exception as e:
638
+ logging.error(f'read range fail {e}')
635
639
  for task in tasks:
636
640
  task.cancel()
637
641
  raise e
@@ -695,6 +699,7 @@ class Pipeline:
695
699
  try:
696
700
  rlts = await asyncio.gather(*tasks)
697
701
  except Exception as e:
702
+ logging.error(f'read range fail {e}')
698
703
  for task in tasks:
699
704
  task.cancel()
700
705
  raise e
@@ -774,6 +779,7 @@ class Dataset:
774
779
  try:
775
780
  rlts = await asyncio.gather(*tasks)
776
781
  except Exception as e:
782
+ logging.error(f'patch fail {e}')
777
783
  for task in tasks:
778
784
  task.cancel()
779
785
  raise e
@@ -801,6 +807,7 @@ class Dataset:
801
807
  try:
802
808
  rlts = await asyncio.gather(*tasks)
803
809
  except Exception as e:
810
+ logging.error(f'poll fail {e}')
804
811
  for task in tasks:
805
812
  task.cancel()
806
813
  raise e
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ga-api-client
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Operating System :: OS Independent
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ga-api-client
3
- version = 0.3.0
3
+ version = 0.3.2
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
6
6
  classifiers =
File without changes
File without changes
File without changes