Skip to content

Commit 19f6d1c

Browse files
author
MartinMikita
committed
Fixed incorrect usage of sleep (without time.) in gcl
1 parent 01ed3eb commit 19f6d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cloudwrapper/gcl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ def flush(self):
8787
self.entries = []
8888
break
8989
except IOError as e:
90-
time.sleep(_repeat * 2 + 1)
90+
sleep(_repeat * 2 + 1)
9191
if e.errno == errno.EPIPE:
9292
credentials = GoogleCredentials.get_application_default()
9393
self.connection = build('logging', 'v2beta1', credentials=credentials)
9494
except Exception:
95-
time.sleep(_repeat * 2 + 5)
95+
sleep(_repeat * 2 + 5)
9696

9797

9898
def list(self, filter=None, orderAsc=True):

0 commit comments

Comments
 (0)