Skip to content

Commit

Permalink
Fixing type handling
Browse files Browse the repository at this point in the history
  • Loading branch information
marcleblanc2 committed Mar 26, 2024
1 parent cf8b484 commit a3488bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion repo-converter/build/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,12 @@ def check_lock_files(args, process_dict):
("git svn fetch origin trunk" , ".git/svn/refs/remotes/origin/trunk/index.lock" ), # fatal: Unable to create '/sourcegraph/src-serve-root/svn.apache.org/asf/xmlbeans/.git/svn/refs/remotes/origin/trunk/index.lock': File exists
]

process_command = " ".join(process_dict["cmdline"])
# TypeError: can only join an iterable
try:
process_command = " ".join(process_dict["cmdline"])
except TypeError as exception:
process_command = process_dict["cmdline"]

pid = process_dict["pid"]

for lock_file in list_of_process_and_lock_file_path_tuples:
Expand Down

0 comments on commit a3488bb

Please sign in to comment.