let exceptions bubble up

This commit is contained in:
Philip Sargent
2021-12-30 19:46:44 +00:00
parent 84e165b8fc
commit 0a3037f077
2 changed files with 13 additions and 9 deletions

View File

@@ -39,7 +39,9 @@ todo='''- Move utility function into utils.py
'''
def writetrogglefile(filepath, filecontent):
'''Set permissions to rw-rw-r-- and commit the new saved file to git'''
'''Set permissions to rw-rw-r-- and commit the new saved file to git
Callers should handle exception PermissionsError explicitly
'''
filepath = Path(filepath)
cwd = filepath.parent
filename = filepath.name