Various changes.
[python_utils.git] / stopwatch.py
index 752c7ed2d39268364d801391ce108768d2763f0c..1326cb1fec8ffb41db461f99aac59372ded655f1 100644 (file)
@@ -16,7 +16,6 @@ class Timer(object):
     def __init__(self) -> None:
         self.start = None
         self.end = None
-        pass
 
     def __enter__(self) -> Callable[[], float]:
         self.start = time.perf_counter()
@@ -25,4 +24,4 @@ class Timer(object):
 
     def __exit__(self, *args) -> bool:
         self.end = time.perf_counter()
-        return True
+        return None  # don't suppress exceptions