File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
contentcuration/contentcuration Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -606,8 +606,7 @@ def generate_new_token(cls):
606606 token = proquint .generate ()
607607 if SecretToken .exists (token ):
608608 continue
609- else :
610- break
609+ break
611610 # after TRIALS attempts and we didn't get a unique token,
612611 # just raise an error.
613612 # See https://stackoverflow.com/a/9980160 on what for-else loop does.
Original file line number Diff line number Diff line change @@ -27,13 +27,12 @@ def do_probe(self):
2727
2828 if passing :
2929 continue
30- else :
31- raise Exception ("Postmark's `%s` service has status %s, but we require one of the following: %s" % (
32- service ['name' ],
33- service ['status' ],
34- allowed_statuses
35- )
30+ raise Exception ("Postmark's `%s` service has status %s, but we require one of the following: %s" % (
31+ service ['name' ],
32+ service ['status' ],
33+ allowed_statuses
3634 )
35+ )
3736
3837
3938if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments