diff --git a/esap_client/connectors/rucio.py b/esap_client/connectors/rucio.py
index dd7a90366ea93ba9221890544664b6f37192d7c1..1b24e19b9b71c67d9806ad70a9a0c45e06a6bc07 100644
--- a/esap_client/connectors/rucio.py
+++ b/esap_client/connectors/rucio.py
@@ -23,7 +23,7 @@ else:
     running_in_dlaas = True
 
 
-class NotInDLaaSError(RuntimeError):
+class NotInDLaaSError(RuntimeError):ยง
     """Exception raised when functions are executed
     outside the Data Lake as a Service environment.
     Inherits from RuntimeError.
@@ -91,7 +91,7 @@ class Rucio(BaseConnector):
         active_rules = set()
         active_dids = set()
         lifetime = (
-            os.environ["RUCIO_REPLICATION_RULE_LIFETIME_DAYS"] * 24 * 60 * 60
+            int(os.environ["RUCIO_REPLICATION_RULE_LIFETIME_DAYS"]) * 24 * 60 * 60
         )  # in seconds
         local_RSE = os.environ["RUCIO_DESTINATION_RSE"]
         local_basepath = os.environ["RUCIO_RSE_MOUNT_PATH"]