Skip to content

Commit 9200a2c

Browse files
committed
Update cli.py
Fixed error in file name
1 parent 92d4231 commit 9200a2c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/somef/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,10 @@ def get_path(obj, path):
291291
del filtered_resp['languages_url']
292292

293293
# get default README
294-
readme_info, date = rate_limit_get(repo_api_base_url + "/readme",
295294
headers=topics_headers,
296-
params=ref_param)
295+
#readme_info, date = rate_limit_get(repo_api_base_url + "/readme",
296+
# headers=topics_headers,
297+
# params=ref_param)
297298
#if 'message' in readme_info.keys():
298299
# print("README Error: " + readme_info['message'])
299300
# text = ""
@@ -809,7 +810,7 @@ def load_local_repository_metadata(local_repo):
809810
with open(os.path.join(os.path.join(repo_dir, "README.MD")), "r", encoding='utf-8') as data_file:
810811
text = data_file.read()
811812
elif os.path.exists(os.path.join(repo_dir, "README.md")):
812-
with open(os.path.join(os.path.join(repo_dir, "README.MD")), "r", encoding='utf-8') as data_file:
813+
with open(os.path.join(os.path.join(repo_dir, "README.md")), "r", encoding='utf-8') as data_file:
813814
text = data_file.read()
814815
for dirpath, dirnames, filenames in os.walk(repo_dir):
815816
repo_relative_path = os.path.relpath(dirpath, repo_dir)

0 commit comments

Comments
 (0)