Skip to content

Commit

Permalink
remove bare excepts for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
edunham committed Oct 26, 2017
1 parent 387c218 commit 6e177cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ def fetch_mergeability(mergeable_que):

state.set_mergeable(mergeable, que=False)

except:
except Exception:
print('* Error while fetching mergeability')
traceback.print_exc()

Expand Down Expand Up @@ -1336,7 +1336,7 @@ def check_timeout(states, queue_handler):

queue_handler()

except:
except Exception:
print('* Error while checking timeout')
traceback.print_exc()

Expand Down
2 changes: 1 addition & 1 deletion homu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def sync_repo(repo_label, g):
synchronize(repo_label, g.repo_cfgs[repo_label], g.logger, g.gh,
g.states, g.repos, g.db, g.mergeable_que,
g.my_username, g.repo_labels)
except:
except Exception:
print('* Error while synchronizing {}'.format(repo_label))
traceback.print_exc()
raise
Expand Down

0 comments on commit 6e177cb

Please sign in to comment.