nityathakkar commited on
Commit
736f17d
·
verified ·
1 Parent(s): ea0e07c

add error about ID

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -70,8 +70,11 @@ def parse_openreview_id(submissions, paper_id, reviewer_id):
70
  curr_review = submissions[ind]
71
  bad_review = next((i for i, entry in enumerate(curr_review.details['replies'])
72
  if entry['signatures'][0].split('_')[-1] == reviewer_id), None)
73
-
74
- review_content = curr_review.details["replies"][bad_review]["content"]
 
 
 
75
 
76
  urllib.request.urlretrieve(paper_url, f"{paper_id}.pdf")
77
  pdf = f"{paper_id}.pdf"
 
70
  curr_review = submissions[ind]
71
  bad_review = next((i for i, entry in enumerate(curr_review.details['replies'])
72
  if entry['signatures'][0].split('_')[-1] == reviewer_id), None)
73
+
74
+ try:
75
+ review_content = curr_review.details["replies"][bad_review]["content"]
76
+ except:
77
+ st.error("Paper ID or reviewer ID are incorrect")
78
 
79
  urllib.request.urlretrieve(paper_url, f"{paper_id}.pdf")
80
  pdf = f"{paper_id}.pdf"