projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RBAC Support for OSMCLIENT
[osm/osmclient.git]
/
osmclient
/
common
/
utils.py
diff --git
a/osmclient/common/utils.py
b/osmclient/common/utils.py
index
8e78459
..
7228e5c
100644
(file)
--- a/
osmclient/common/utils.py
+++ b/
osmclient/common/utils.py
@@
-17,16
+17,16
@@
import time
import time
-def wait_for_value(func, result=True, wait_time=10, catch_exception
= None
):
+def wait_for_value(func, result=True, wait_time=10, catch_exception
=None
):
maxtime = time.time() + wait_time
while time.time() < maxtime:
try:
if func() == result:
maxtime = time.time() + wait_time
while time.time() < maxtime:
try:
if func() == result:
- return True
- except catch_exception
as inst
:
+ return True
+ except catch_exception:
pass
time.sleep(1)
try:
return func() == result
pass
time.sleep(1)
try:
return func() == result
- except catch_exception
as inst
:
+ except catch_exception:
return False
return False