mirror of https://gitlab.com/bashrc2/epicyon
Redice indentation
parent
8c06c1b8f0
commit
2d2efc2352
|
@ -51,8 +51,12 @@ def _meta_data_instance_v2(show_accounts: bool,
|
|||
rules_list = []
|
||||
rules_filename = data_dir(base_dir) + '/tos.md'
|
||||
if os.path.isfile(rules_filename):
|
||||
rules_lines = []
|
||||
try:
|
||||
with open(rules_filename, 'r', encoding='utf-8') as fp_rules:
|
||||
rules_lines = fp_rules.readlines()
|
||||
except OSError:
|
||||
print('EX: _meta_data_instance_v2 unable to read rules')
|
||||
rule_ctr = 1
|
||||
for line in rules_lines:
|
||||
line = line.strip()
|
||||
|
@ -119,7 +123,8 @@ def _meta_data_instance_v2(show_accounts: bool,
|
|||
encoding='utf-8') as fp_pub:
|
||||
published = fp_pub.read()
|
||||
except OSError:
|
||||
print('EX: unable to read last published time 2 ' +
|
||||
print('EX: _meta_data_instance_v2 ' +
|
||||
'unable to read last published time 2 ' +
|
||||
published_filename)
|
||||
|
||||
# get all supported mime types
|
||||
|
|
Loading…
Reference in New Issue