Skip to content

Commit 25403d0

Browse files
committed
added patch for rm permissions bug
1 parent e8fc45a commit 25403d0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pyttitools-PYTTI.ipynb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,19 @@
338338
" if not path_exists('./pytti'):\n",
339339
" !git clone https://github.com/pytti-tools/pytti-core.git pytti &> /dev/null\n",
340340
" else:\n",
341-
" !rm -r pytti\n",
342-
" !git clone https://github.com/pytti-tools/pytti-core.git pytti\n",
341+
" try:\n",
342+
" !rm -r pytti\n",
343+
" !git clone https://github.com/pytti-tools/pytti-core.git pytti\n",
344+
" except Exception as ex:\n",
345+
" logger.warning(\n",
346+
" str(ex)\n",
347+
" )\n",
348+
" logger.warning(\n",
349+
" \"A `pytti` folder already exists and could not be deleted.\"\n",
350+
" \"If you encounter problems, try deleting that folder and trying again.\"\n",
351+
" \"Please report this and any other issues here: \"\n",
352+
" \"https://github.com/pytti-tools/pytti-notebook/issues/new\",\n",
353+
" exc_info=True)\n",
343354
" !pip install -r pytti/requirements.txt\n",
344355
" !git clone https://github.com/shariqfarooq123/AdaBins.git &> /dev/null\n",
345356
" !git clone https://github.com/zacjiang/GMA.git &> /dev/null\n",

0 commit comments

Comments
 (0)