This commit is contained in:
root 2019-10-08 15:52:18 +08:00
parent fc7d7ee8d7
commit cdd5136294

View File

@ -184,7 +184,7 @@ def read_mongo(start_date, end_date):
if __name__ == "__main__":
if sys.argv == 2:
if len(sys.argv) == 2:
try:
d = datetime.datetime.strptime(sys.argv[1], "%Y-%m-%d")
except Exception: