requestsync: Do not crash on user abort (Closes: #637168).

This commit is contained in:
Benjamin Drung 2011-09-06 13:24:25 +02:00
parent 4f043a34e0
commit e47bff4bed
2 changed files with 6 additions and 1 deletions

1
debian/changelog vendored
View File

@ -36,6 +36,7 @@ ubuntu-dev-tools (0.129) UNRELEASED; urgency=low
[ Benjamin Drung ]
* sponsor-patch: Default to not upload the package.
* requestsync: Do not crash on user abort (Closes: #637168).
-- Benjamin Drung <bdrung@debian.org> Tue, 06 Sep 2011 13:14:50 +0200

View File

@ -329,4 +329,8 @@ def main():
mailserver_user, mailserver_pass)
if __name__ == '__main__':
main()
try:
main()
except KeyboardInterrupt:
print "\nUser abort."
sys.exit(2)