diff --git a/satella/coding/recast_exceptions.py b/satella/coding/recast_exceptions.py
index bf164db4..32e4e1c8 100644
--- a/satella/coding/recast_exceptions.py
+++ b/satella/coding/recast_exceptions.py
@@ -45,7 +45,8 @@ class rethrow_as(object):
         """
 
         # You can also provide just two exceptions
-        if len(pairs) == 2 and all(issubclass(p, BaseException) for p in pairs):
+        if len(pairs) == 2 and not isinstance(pairs[1], (tuple, list)) \
+                and all(issubclass(p, BaseException) for p in pairs):
             self.mapping = {pairs[0]: pairs[1]}
         else:
             self.mapping = dict(pairs)

Bad rethrow_as
```python
    @rethrow_as((UnicodeDecodeError, ConfigurationMalformed),
                (json.JSONDecodeError, ConfigurationMalformed))
    @rethrow_as(ValueError, ConfigurationMalformed)
    @rethrow_as(binascii.Error, ConfigurationMalformed)
    @rethrow_as(TypeError, ConfigurationError)
    def provide(self):
        return json.loads(self.root, encoding=self.encoding)
```

breaks it by treating two first pairs in a wrong way
diff --git a/tests/test_coding/test_rethrow.py b/tests/test_coding/test_rethrow.py
index ce17f722..80dd8ec6 100644
--- a/tests/test_coding/test_rethrow.py
+++ b/tests/test_coding/test_rethrow.py
@@ -39,4 +39,17 @@ class TestStuff(unittest.TestCase):
         def lol():
             raise ValueError()
 
-        self.assertRaises(NameError, lol)
\ No newline at end of file
+        self.assertRaises(NameError, lol)
+
+    def test_issue_10(self):
+
+        class WTFException1(Exception): pass
+        class WTFException2(Exception): pass
+
+        @rethrow_as((NameError, WTFException1),
+                    (TypeError, WTFException2))
+        def provide(exc):
+            raise exc()
+
+        self.assertRaises(WTFException1, lambda: provide(NameError))
+        self.assertRaises(WTFException2, lambda: provide(TypeError))

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest coverage
apt-get update apt-get install -y gcc
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
monotonic==1.6
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
-e git+https://github.com/piotrmaslanka/satella.git@5fa0a67e4d35431f2f54740ba8fcfbd7f6d8bc59#egg=satella
six==1.17.0
tomli==2.2.1
typing==3.7.4.3

name: satella
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.8.0
      - exceptiongroup==1.2.2
      - iniconfig==2.1.0
      - monotonic==1.6
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - six==1.17.0
      - tomli==2.2.1
      - typing==3.7.4.3
prefix: /opt/conda/envs/satella

tests/test_coding/test_rethrow.py::TestStuff::test_issue_10
tests/test_coding/test_rethrow.py::TestStuff::test_rethrow tests/test_coding/test_rethrow.py::TestStuff::test_rethrow_2 tests/test_coding/test_rethrow.py::TestStuff::test_rethrow_3 tests/test_coding/test_rethrow.py::TestStuff::test_silencer tests/test_coding/test_rethrow.py::TestStuff::test_silencer_2
satella/coding/recast_exceptions.py
satella/coding/recast_exceptions.py