Spaces:
Sleeping
Sleeping
Fixed bugs
Browse files- src/exception.py +1 -9
src/exception.py
CHANGED
@@ -16,12 +16,4 @@ class CustomException(Exception):
|
|
16 |
def __str__(self) -> str:
|
17 |
return self.error_message
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
try:
|
22 |
-
a = 1/0
|
23 |
-
except Exception as e:
|
24 |
-
logging.info("Logging has started")
|
25 |
-
raise CustomException
|
26 |
-
finally:
|
27 |
-
logging.info(CustomException(e,sys))
|
|
|
16 |
def __str__(self) -> str:
|
17 |
return self.error_message
|
18 |
|
19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|