Browse Source

Convert to Python 3: `StandardError` -> `Exception`

Alois Mahdal 1 year ago
parent
commit
ebde8cef64
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sznqalibs/hoover.py

+ 2
- 2
sznqalibs/hoover.py View File

@@ -708,7 +708,7 @@ class BaseTestDriver(object):
708 708
         start = time.time()
709 709
         try:
710 710
             self._get_data()        # run the test, i.e. obtain raw data
711
-        except StandardError as e:
711
+        except Exception as e:
712 712
             raise DriverError(e, self)
713 713
         self.duration = (time.time() - start if self.duration is None
714 714
                          else self.duration)
@@ -716,7 +716,7 @@ class BaseTestDriver(object):
716 716
             self._decode_data()     # decode raw data
717 717
             self._normalize_data()  # normalize decoded data
718 718
             self._check_data()      # perform arbitrarty checking
719
-        except StandardError, e:
719
+        except Exception as e:
720 720
             raise DriverDataError(e, self)
721 721
         self.__cleanup_data()   # cleanup (remove data['_*'])
722 722