simonduerr commited on
Commit
d52017c
·
1 Parent(s): 8df3557

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 GithubException:
126
- print(git_file, "already exists, updating")
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,