".github/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "34b274e65e9040949e304360f2056df578791370"
Unverified Commit 7ba78e94 authored by Qianli Scott Zhu's avatar Qianli Scott Zhu Committed by GitHub
Browse files

Fix lint error for cloud_lib (#4446)

parent 1e3ca88a
...@@ -23,7 +23,7 @@ GCP_METADATA_HEADER = {"Metadata-Flavor": "Google"} ...@@ -23,7 +23,7 @@ GCP_METADATA_HEADER = {"Metadata-Flavor": "Google"}
def on_gcp(): def on_gcp():
"""Detect whether the current running environment is on GCP""" """Detect whether the current running environment is on GCP."""
try: try:
response = requests.get(GCP_METADATA_URL, headers=GCP_METADATA_HEADER) response = requests.get(GCP_METADATA_URL, headers=GCP_METADATA_HEADER)
return response.status_code == 200 return response.status_code == 200
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment