Skip to content

Commit

Permalink
[llapi] remove deprecated parameter when loading json
Browse files Browse the repository at this point in the history
  • Loading branch information
manish.kumar authored and iancampbell committed Jun 22, 2022
1 parent 6b231e9 commit d1ad27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/llapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_hmac(key, msg):
def read_keyfile(key_file):
try:
with open(key_file, 'r') as f:
key_info = json.load(f, encoding='utf-8')
key_info = json.load(f)
except (OSError, IOError, UnicodeDecodeError):
email, key = (None, None)
except Exception:
Expand All @@ -62,7 +62,7 @@ def read_dashboard_config(config_file):

try:
with open(config_file, 'r') as f:
cfg_info = json.load(f, encoding='utf-8')
cfg_info = json.load(f)
except (OSError, IOError, UnicodeDecodeError):
pass
except Exception:
Expand Down

0 comments on commit d1ad27b

Please sign in to comment.