mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2025-01-03 09:37:39 +00:00
Fix lint
This commit is contained in:
parent
e1fa8726d0
commit
09b982ede3
@ -44,9 +44,11 @@ def load_text(params: List[str], file_path: str='', func: str='', lang: str='')
|
||||
# Auto-detect file-path based on call stack
|
||||
file_path = inspect.stack()[1].filename
|
||||
if file_path[-4:] == '.pyc':
|
||||
file_path = file_path[:-4] + '.json' # replace .pyc with .json
|
||||
file_path = file_path[:-4] + '.json' # replace .pyc with .json
|
||||
elif file_path[-3:] == '.py':
|
||||
file_path = file_path[:-3] + '.json' # replace .py with .json
|
||||
file_path = file_path[:-3] + '.json' # replace .py with .json
|
||||
else:
|
||||
raise KeyError("Wrong file_path %s", file_path)
|
||||
|
||||
if func == '':
|
||||
# Auto-detect function based on call stack
|
||||
|
Loading…
Reference in New Issue
Block a user