From 25b1296dedef20de338fd72bf631bd4d1c2deb38 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 9 May 2014 16:02:24 +0300 Subject: [PATCH] Properly exit when "gmg deletemedia" succeed. Also, fixed a typo: "to will be" -> "will be" --- mediagoblin/gmg_commands/deletemedia.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mediagoblin/gmg_commands/deletemedia.py b/mediagoblin/gmg_commands/deletemedia.py index d08e76cc..ed1ca4e9 100644 --- a/mediagoblin/gmg_commands/deletemedia.py +++ b/mediagoblin/gmg_commands/deletemedia.py @@ -14,12 +14,14 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import sys + from mediagoblin.gmg_commands import util as commands_util def parser_setup(subparser): subparser.add_argument('media_ids', - help='Comma separated list of media IDs to will be deleted.') + help='Comma separated list of media IDs will be deleted.') def deletemedia(args): @@ -36,3 +38,4 @@ def deletemedia(args): for media in media_ids - found_medias: print 'Can\'t find a media with ID %d.' % media print 'Done.' + sys.exit(0) -- 2.25.1