|
@@ -317,7 +317,7 @@ class SqlAlchemyApi(Api):
|
|
|
stats = None
|
|
stats = None
|
|
|
progress = 100
|
|
progress = 100
|
|
|
try:
|
|
try:
|
|
|
- if handle:
|
|
|
|
|
|
|
+ if handle and handle['result'].cursor:
|
|
|
stats = handle['result'].cursor.poll()
|
|
stats = handle['result'].cursor.poll()
|
|
|
except AssertionError as e:
|
|
except AssertionError as e:
|
|
|
LOG.warn('Query probably not running anymore: %s' % e)
|
|
LOG.warn('Query probably not running anymore: %s' % e)
|