Skip to content

Commit f34e399

Browse files
author
bors-servo
authored
Auto merge of #138 - edunham:newflake8, r=jdm
remove bare excepts for flake8 Bandaid for the bug which was hit in servo/homu#133 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/homu/138) <!-- Reviewable:end -->
2 parents 387c218 + 6e177cb commit f34e399

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

homu/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ def fetch_mergeability(mergeable_que):
13031303

13041304
state.set_mergeable(mergeable, que=False)
13051305

1306-
except:
1306+
except Exception:
13071307
print('* Error while fetching mergeability')
13081308
traceback.print_exc()
13091309

@@ -1336,7 +1336,7 @@ def check_timeout(states, queue_handler):
13361336

13371337
queue_handler()
13381338

1339-
except:
1339+
except Exception:
13401340
print('* Error while checking timeout')
13411341
traceback.print_exc()
13421342

homu/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def sync_repo(repo_label, g):
695695
synchronize(repo_label, g.repo_cfgs[repo_label], g.logger, g.gh,
696696
g.states, g.repos, g.db, g.mergeable_que,
697697
g.my_username, g.repo_labels)
698-
except:
698+
except Exception:
699699
print('* Error while synchronizing {}'.format(repo_label))
700700
traceback.print_exc()
701701
raise

0 commit comments

Comments
 (0)