diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/db/get_db_schema.py | 8 | ||||
-rw-r--r-- | docker/db/init_db.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/docker/db/get_db_schema.py b/docker/db/get_db_schema.py index 1106355..16ed3da 100644 --- a/docker/db/get_db_schema.py +++ b/docker/db/get_db_schema.py @@ -18,7 +18,7 @@ def get(url): try: ret = requests.get(url) return ret.json() - except: + except Exception: return None @@ -28,7 +28,7 @@ def pod(): pods = get(source)['pods'] with open("pods.json", "w") as f: f.write(json.dumps(pods, indent=4)) - except: + except Exception: return @@ -39,7 +39,7 @@ def project(): projects = get(source)['projects'] with open("projects.json", "w") as f: f.write(json.dumps(projects, indent=4)) - except: + except Exception: return for p in projects: @@ -52,7 +52,7 @@ def project(): f.write(json.dumps(cases)) f.write('\n') f.close() - except: + except Exception: print("useless data") diff --git a/docker/db/init_db.py b/docker/db/init_db.py index 2aac6fc..afed693 100644 --- a/docker/db/init_db.py +++ b/docker/db/init_db.py @@ -58,7 +58,7 @@ def cases(): c['project_name']) print(target) post(target, c) - except: + except Exception: print("useless data") add_case("functest", "tempest_custom") |