Browse Source

Investigating strange error

ogert 4 years ago
parent
commit
0607c7a490
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cdplib/db_handlers/MongodbHandler.py

+ 1 - 1
cdplib/db_handlers/MongodbHandler.py

@@ -291,7 +291,7 @@ class MongodbHandler:
 
         #print(data[0])
         #print(len(data[0]))
-        if len(data[0]) != 0:
+        if data.retrieved() != 0:
             if return_as_dataframe:
                 return self.convert_mongo_data_into_dataframe(data, index, collection_name)
             else: