mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
fix formatting issues
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
fa74a26042
commit
eb83e00011
134 files changed
+598
-720
No files matched your search
+4
-4
@@ -96,11 +96,11 @@ def validate_mountpoint(mountpoint):
|
||||
"""Check that the folder is empty, and create it if it doesn't exist"""
|
||||
if os.path.exists(mountpoint):
|
||||
if _is_mounted(mountpoint):
|
||||
raise AlreadyMountedError(
|
||||
'Mountpoint %s already mounted' % mountpoint)
|
||||
raise AlreadyMountedError('Mountpoint %s already mounted' %
|
||||
mountpoint)
|
||||
if os.listdir(mountpoint) or not os.path.isdir(mountpoint):
|
||||
raise ValueError(
|
||||
'Mountpoint %s is not an empty directory' % mountpoint)
|
||||
raise ValueError('Mountpoint %s is not an empty directory' %
|
||||
mountpoint)
|
||||
else:
|
||||
os.makedirs(mountpoint)
|
||||
|
||||
|
||||
Reference in new issue
Block a user