diff --git a/python/waLBerla/tools/lbm_unitconversion/pint_unit_converter.py b/python/waLBerla/tools/lbm_unitconversion/pint_unit_converter.py
index 83b6ab0f982007f5ae363472799155fc553d2c25..eec47971e6dd4da1f96e86d86d465ce9141d7022 100644
--- a/python/waLBerla/tools/lbm_unitconversion/pint_unit_converter.py
+++ b/python/waLBerla/tools/lbm_unitconversion/pint_unit_converter.py
@@ -113,12 +113,12 @@ class PintUnitConverter:
             elif type(value) is tuple:
                 try:
                     result[key] = tuple( [ self.ureg.Quantity(e) for e in value ] )
-                except (pint.unit.UndefinedUnitError, ValueError, TypeError):
+                except (pint.UndefinedUnitError, ValueError, TypeError):
                     result[key] = value
             else:
                 try:
                     result[key] = self.ureg.Quantity( value )
-                except (pint.unit.UndefinedUnitError, ValueError, TypeError):
+                except (pint.UndefinedUnitError, ValueError, TypeError):
                     result[key] = value
 
         return result