We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb50d2a commit 02fb608Copy full SHA for 02fb608
tensorlayer/db.py
@@ -165,10 +165,13 @@ def find_one_params(self, args={}):
165
return False, False
166
# print(f_id)
167
# exit()
168
- params = pickle.loads(self.paramsfs.get(f_id).read())
169
- # print(self.paramsfs)
170
- print("[TensorDB] Find one params SUCCESS, {} took: {}s".format(args, round(time.time()-s, 2)))
171
- return params, f_id
+ try:
+ params = pickle.loads(self.paramsfs.get(f_id).read())
+ # print(self.paramsfs)
+ print("[TensorDB] Find one params SUCCESS, {} took: {}s".format(args, round(time.time()-s, 2)))
172
+ return params, f_id
173
+ except:
174
+ return False, False
175
176
def find_all_params(self, args={}):
177
""" Find all parameter from MongoDB Buckets """
0 commit comments