Running with gitlab-runner 17.6.0 (374d34fd)
  on hamster-docker-indiscale xmEUxNs3, system ID: r_1yzoErM4OeFG
Resolving secrets
section_start:1742389999:prepare_executor
Preparing the "docker" executor
Using Docker executor with image gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main ...
Authenticating with credentials from job payload (GitLab Registry)
Pulling docker image gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main ...
Using docker image sha256:7584fe83a9e74f44476413cfe14d4dc40d83f0c3cd41a4353c873aa8efd6feba for gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main with digest gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv@sha256:88d1cdaa0fb5beb3a023c8c65673f750b417d4d62aed3085f107ce638a686ca2 ...
section_end:1742390001:prepare_executor
section_start:1742390001:prepare_script
Preparing environment
Running on runner-xmeuxns3-project-259-concurrent-1 via 25e63d4dbc9e...
section_end:1742390003:prepare_script
section_start:1742390003:get_sources
Getting source from Git repository
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /builds/xmEUxNs3/1/caosdb/src/linkahead-loan/.git/
Checking out 8cc1c7d1 as detached HEAD (ref is main)...

Skipping Git submodules setup
section_end:1742390005:get_sources
section_start:1742390005:step_script
Executing "step_script" stage of the job script
Using docker image sha256:7584fe83a9e74f44476413cfe14d4dc40d83f0c3cd41a4353c873aa8efd6feba for gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main with digest gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv@sha256:88d1cdaa0fb5beb3a023c8c65673f750b417d4d62aed3085f107ce638a686ca2 ...
$ autopep8 -r --diff --exit-code --max-line-length=100 .
--- original/./loanpy/src/loan/request_loan.py
+++ fixed/./loanpy/src/loan/request_loan.py
@@ -35,6 +35,7 @@
 
 LOGGER_NAME = "box_loan"
 LOGGER = logging.getLogger(LOGGER_NAME)
+
 
 def create_loan(box, borrower, expected_return, exhaust_contents, comment, destination):
     """ Create a new loan record. """
@@ -104,12 +105,11 @@
         if db.execute_query(f"COUNT {BOX.name} WITH ID='{item}'") != 1:
             bad_type_ids.append(item)
 
-    if len(bad_type_ids)>0:
+    if len(bad_type_ids) > 0:
         LOGGER.error(f"The entities with the following IDs do not have the appropriate RecordType "
                      f"in order to create a loan:<br>{', '.join(bad_type_ids)}<br>")
         return False
     return True
-
 
 
 def _issue_loan_request(data):
section_end:1742390006:step_script
section_start:1742390006:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1742390007:cleanup_file_variables
ERROR: Job failed: exit code 1