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.
- {ga-api-client-0.3.0/ga_api_client.egg-info → ga-api-client-0.3.2}/PKG-INFO +1 -1
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api/ga_api_client.py +8 -1
- {ga-api-client-0.3.0 → ga-api-client-0.3.2/ga_api_client.egg-info}/PKG-INFO +1 -1
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/setup.cfg +1 -1
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/LICENSE +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/README.md +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api/__init__.py +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api/field_tree.py +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api/hyper_log_log.py +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api_client.egg-info/SOURCES.txt +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api_client.egg-info/dependency_links.txt +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api_client.egg-info/requires.txt +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/ga_api_client.egg-info/top_level.txt +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/pyproject.toml +0 -0
- {ga-api-client-0.3.0 → ga-api-client-0.3.2}/setup.py +0 -0
|
@@ -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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|