Spaces:
Running
Running
Commit
·
d52017c
1
Parent(s):
8df3557
Update app.py
Browse files
app.py
CHANGED
@@ -122,8 +122,8 @@ def process_and_create_pull(icon_files,category, new_cateogry_check, new_categor
|
|
122 |
content=file_content,
|
123 |
branch=branch_name
|
124 |
)
|
125 |
-
except
|
126 |
-
print(git_file, "already
|
127 |
contents = site.get_contents(git_file)
|
128 |
site.update_file(
|
129 |
path=git_file,
|
|
|
122 |
content=file_content,
|
123 |
branch=branch_name
|
124 |
)
|
125 |
+
except Exception as e:
|
126 |
+
print(e, git_file, "already may exist, trying updating")
|
127 |
contents = site.get_contents(git_file)
|
128 |
site.update_file(
|
129 |
path=git_file,
|