Skip to content

Commit

Permalink
Fix ws issues
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt committed Feb 16, 2024
1 parent 69a6601 commit 297ab51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zbmath_rest2oai/get_all_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
# from https://stackoverflow.com/a/38677619/9215209


def get_all_de(api_source,CSV_URL):
def get_all_de(api_source, CSV_URL):
with requests.get(CSV_URL, stream=True) as r:
lines = (line.decode('utf-8') for line in r.iter_lines())
for row in csv.reader(lines):
de = row[0]
try:
write_oai(de,api_source)
write_oai(de, api_source)
except Exception as error:
print(de, error, file=sys.stderr)

Expand Down

0 comments on commit 297ab51

Please sign in to comment.