Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def modify_file(file_path):
|
|
78 |
lines = file.readlines()
|
79 |
|
80 |
# Modify the specified lines
|
81 |
-
lines[106] = "raise ImportError\n" # Line 107 (index starts at 0)
|
82 |
lines[107] = "" # Line 108, replace with an empty line or remove it
|
83 |
|
84 |
# Write the modified lines back to the file
|
|
|
78 |
lines = file.readlines()
|
79 |
|
80 |
# Modify the specified lines
|
81 |
+
lines[106] = " raise ImportError("Custom import error message")\n" # Line 107 (index starts at 0)
|
82 |
lines[107] = "" # Line 108, replace with an empty line or remove it
|
83 |
|
84 |
# Write the modified lines back to the file
|