mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
storage: Fix enumerating partitions without mount points
Fixes an issue where accessing Storage and Samba app pages throws a HTTP error 500 when there are disk partitions without mount points. Fixes #1904 #2245 Tested when an USB stick with Debian installer image is attached to Freedombox board - both Storage and Samba apps work. Signed-off-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
12d02fecfb
commit
41a3148d3a
@ -170,7 +170,7 @@ def get_disks():
|
||||
}
|
||||
try:
|
||||
file_system = Filesystem(object_)
|
||||
device['mount_points'] = file_system.mount_points
|
||||
device['mount_points'] = file_system.mount_points or []
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user