There was an error while loading. Please reload this page.
1 parent a28a13e commit 1f433acCopy full SHA for 1f433ac
1 file changed
examples/example_time_calls.py
@@ -16,15 +16,26 @@ def main():
16
17
print('Create')
18
tic = time.process_time_ns()
19
- cf = CloudFlare.CloudFlare()
+ try:
20
+ cf = CloudFlare.CloudFlare()
21
+ except Exception as e:
22
+ print('\tError: %s' % (e))
23
+ cf = None
24
toc = time.process_time_ns()
25
print('\t%7.3f ms' % ((toc-tic)/1000000.0))
26
print('')
27
28
+ if not cf:
29
+ return
30
+
31
print('Call')
32
for ii in range(0,10):
33
- r = cf.ips()
34
35
+ r = cf.ips()
36
37
38
+ break
39
40
41
0 commit comments