MM2: fixed bug where index file wans't being created
This commit is contained in:
parent
25b5ad43a1
commit
974858c8f5
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ def main(global_config, api_client_config, log_config,
|
||||||
if not os.path.exists(config['index_path']):
|
if not os.path.exists(config['index_path']):
|
||||||
log.info("Attempting to create index file:...")
|
log.info("Attempting to create index file:...")
|
||||||
try:
|
try:
|
||||||
with open(config['index_path']) as f: f.write(" ")
|
with open(config['index_path'], 'w') as f: f.write(" ")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.info("Failed to create index file with exception: %s" % str(e))
|
log.info("Failed to create index file with exception: %s" % str(e))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue