Spaces:
Runtime error
Runtime error
SoSa123456
commited on
Commit
•
4486ffb
1
Parent(s):
5aa708b
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def generate_script(host_name, listener_location, causes_climate_change, co2_lev
|
|
48 |
error_message = f"Error: {e}"
|
49 |
|
50 |
# Save error log to a file
|
51 |
-
with open("error_log.txt", "a") as log_file:
|
52 |
log_file.write(error_message + "\n")
|
53 |
|
54 |
return error_message
|
|
|
48 |
error_message = f"Error: {e}"
|
49 |
|
50 |
# Save error log to a file
|
51 |
+
with open("./error_log.txt", "a") as log_file:
|
52 |
log_file.write(error_message + "\n")
|
53 |
|
54 |
return error_message
|