Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,10 @@ def load_code(filename: str) -> str:
|
|
17 |
try:
|
18 |
with open(filename, 'r', encoding='utf-8') as file:
|
19 |
return file.read()
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
def load_parquet(filename: str) -> str:
|
26 |
try:
|
@@ -405,3 +405,4 @@ if __name__ == "__main__":
|
|
405 |
|
406 |
|
407 |
|
|
|
|
17 |
try:
|
18 |
with open(filename, 'r', encoding='utf-8') as file:
|
19 |
return file.read()
|
20 |
+
except FileNotFoundError:
|
21 |
+
return f"{filename} νμΌμ μ°Ύμ μ μμ΅λλ€."
|
22 |
+
except Exception as e:
|
23 |
+
return f"νμΌμ μ½λ μ€ μ€λ₯κ° λ°μνμ΅λλ€: {str(e)}"
|
24 |
|
25 |
def load_parquet(filename: str) -> str:
|
26 |
try:
|
|
|
405 |
|
406 |
|
407 |
|
408 |
+
|