Commit 145b4c5b authored by Martin Hamant's avatar Martin Hamant 💬
Browse files

duplication works ?

parent 64a657b2
Pipeline #16769 passed with stages
in 45 seconds
......@@ -64,6 +64,27 @@ class GithubError(Exception):
def __init__(self, message):
self.message = message
def record_orphan2(entry):
entry : a dict of orphans to record as :
{'proactive/documentation': '',
'proactive/scheduling': ''}
The output is a JSON file
the filename is hardcoded in orphanFilePath
if type(entry) is not dict:
return False
with open(orphanFilePath, 'r+') as orphanFile:
_j = json.load(orphanFile)
json.dump(_j, orphanFile)
except OSError as e:
logger.error('cannot update file: {}'.format(e))
except json.decoder.JSONDecodeError:
logger.error("JSON decode error")
def record_orphan(entry):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment