|
@@ -92,7 +92,7 @@ class ScriptFileForm(ManagedFileForm):
|
|
|
)
|
|
)
|
|
|
elif data_file := self.cleaned_data.get('data_file'):
|
|
elif data_file := self.cleaned_data.get('data_file'):
|
|
|
# Validate scripts synced from a data source as well, to avoid creating a broken
|
|
# Validate scripts synced from a data source as well, to avoid creating a broken
|
|
|
- # script module that cannot be loaded or corrected (see #22180)
|
|
|
|
|
|
|
+ # script module that cannot be loaded or corrected
|
|
|
try:
|
|
try:
|
|
|
validate_script_content(data_file.data, data_file.path)
|
|
validate_script_content(data_file.data, data_file.path)
|
|
|
except Exception as e:
|
|
except Exception as e:
|