fix not exist iso dir

This commit is contained in:
Cayo Puigdefabregas 2022-08-12 10:23:06 +02:00
parent 29d69cd285
commit dcd229f12b
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ class SettingsView(GenericMixin):
self.context['iso'] = {}
if not os.path.exists(uri):
return
versions = os.listdir(f'{path}/static/iso/')
versions.sort()