summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-12-30 19:46:44 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2021-12-30 19:46:44 +0000
commit0a3037f077dabc39c386a6aea5668b661e64ea7b (patch)
treeda4db00fe1666851dec1b35a808ecd71841915f3 /core/models/caves.py
parent84e165b8fc17dfa924b549ccd2ad16e2013a596b (diff)
downloadtroggle-0a3037f077dabc39c386a6aea5668b661e64ea7b.tar.gz
troggle-0a3037f077dabc39c386a6aea5668b661e64ea7b.tar.bz2
troggle-0a3037f077dabc39c386a6aea5668b661e64ea7b.zip
let exceptions bubble up
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index 263eaf1..313935a 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -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