Spaces:
Running on CPU Upgrade

lunarflu HF staff commited on
Commit
bace1a6
·
1 Parent(s): d4c1c4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -73,10 +73,12 @@ async def add_exp_hub(ctx):
73
  row_number = column_values.index(value) + 1
74
  hf_user_name = value
75
  # check likes
76
- likes = list_liked_repos(f"{hf_user_name}")
77
- hf_likes_new = likes.total
78
- worksheet2.update(f'G{row_number}', f'{hf_likes_new}')
79
-
 
 
80
  except Exception as e:
81
  print(f"add_exp_hub Error: {e}")
82
 
 
73
  row_number = column_values.index(value) + 1
74
  hf_user_name = value
75
  # check likes
76
+ try:
77
+ likes = list_liked_repos(f"{hf_user_name}")
78
+ hf_likes_new = likes.total
79
+ worksheet2.update(f'G{row_number}', f'{hf_likes_new}')
80
+ except Exception as e:
81
+ print(f"add_exp_hub Error: {e}")
82
  except Exception as e:
83
  print(f"add_exp_hub Error: {e}")
84