Fixing Lint after flake upgrade (#1162)

* Fixing Lint after flake upgrade

* more lint fixes
This commit is contained in:
Richard Liaw
2017-10-26 21:02:07 -05:00
committed by Robert Nishihara
parent 6da7761d5d
commit 797f4fcbf3
11 changed files with 34 additions and 37 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ class Trial(object):
self.agent.stop.remote()
self.agent.__ray_terminate__.remote(
self.agent._ray_actor_id.id())
except:
except Exception:
print("Error stopping agent:", traceback.format_exc())
self.status = Trial.ERROR
finally:
@@ -198,7 +198,7 @@ class Trial(object):
else:
try:
ray.get(self.agent.restore.remote(path))
except:
except Exception:
print("Error restoring agent:", traceback.format_exc())
self.status = Trial.ERROR