fix not exist iso dir
This commit is contained in:
parent
29d69cd285
commit
dcd229f12b
|
@ -46,6 +46,9 @@ class SettingsView(GenericMixin):
|
||||||
|
|
||||||
self.context['iso'] = {}
|
self.context['iso'] = {}
|
||||||
|
|
||||||
|
if not os.path.exists(uri):
|
||||||
|
return
|
||||||
|
|
||||||
versions = os.listdir(f'{path}/static/iso/')
|
versions = os.listdir(f'{path}/static/iso/')
|
||||||
versions.sort()
|
versions.sort()
|
||||||
|
|
||||||
|
|
Reference in New Issue