aboutsummaryrefslogtreecommitdiffstats
path: root/push.py
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-04-18 19:50:24 +0200
committerMarius Halden <marius.h@lden.org>2015-04-18 19:50:24 +0200
commitc430b091c98a86041641d865820b2da65c631753 (patch)
tree0abce9c583ced038579552f1941e6db5f3d1ea95 /push.py
parentb38fddba2dd3ce4c67729ec596953e8bcf85f845 (diff)
downloademail2push-c430b091c98a86041641d865820b2da65c631753.tar.gz
email2push-c430b091c98a86041641d865820b2da65c631753.tar.bz2
email2push-c430b091c98a86041641d865820b2da65c631753.tar.xz
Well this is awkward, am I trying to write perl or something?HEADmaster
Diffstat (limited to 'push.py')
-rwxr-xr-xpush.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/push.py b/push.py
index c6a2104..f23b0c3 100755
--- a/push.py
+++ b/push.py
@@ -53,7 +53,7 @@ for s in sender_map:
else:
break
except KeyError:
- next
+ continue
else:
print("Found no matching sender.", file=sys.stderr)
sys.exit(1)
@@ -70,7 +70,7 @@ for r in recipient_map:
else:
break
except KeyError:
- next
+ continue
else:
print("Found no matching receiver.", file=sys.stderr)
sys.exit(1)
@@ -125,7 +125,7 @@ for user_token in user_tokens:
except AttributeError:
pass
except (IndexError, KeyError):
- next # We should not get here (at least not from a KeyError)
+ continue # We should not get here (at least not from a KeyError)
else:
user_token = k