Jon Solow commited on
Commit
556be95
·
1 Parent(s): 5da8dce

Remove try-except on json loads

Browse files
Files changed (1) hide show
  1. src/login.py +2 -5
src/login.py CHANGED
@@ -22,11 +22,8 @@ class HFFriendlyGSheetsConnection(GSheetsConnection):
22
 
23
  # in hf env the private key may need json loads
24
  private_key = connections_section["private_key"]
25
- try:
26
- private_key = json.loads(private_key)
27
- connections_section["private_key"] = private_key
28
- except Exception:
29
- pass
30
 
31
  return AttrDict(connections_section)
32
 
 
22
 
23
  # in hf env the private key may need json loads
24
  private_key = connections_section["private_key"]
25
+ private_key = json.loads(private_key)
26
+ connections_section["private_key"] = private_key
 
 
 
27
 
28
  return AttrDict(connections_section)
29