rahul2001 commited on
Commit
0480d54
·
1 Parent(s): 18249ab

Fixed bugs

Browse files
Files changed (1) hide show
  1. 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
- if __name__ == "__main__":
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
+