aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-01 15:58:25 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:13 -0700
commitbf909ab048d2741b91542ad2b00789f30e51c2cf (patch)
treef5e8c42c8a79a670d618aeda304c2291de47dc2e
parent065db04730936286bbe213133a3175d48950fd32 (diff)
downloadmediagoblin-bf909ab048d2741b91542ad2b00789f30e51c2cf.tar.lz
mediagoblin-bf909ab048d2741b91542ad2b00789f30e51c2cf.tar.xz
mediagoblin-bf909ab048d2741b91542ad2b00789f30e51c2cf.zip
pep 8
-rw-r--r--mediagoblin/gmg_commands/reprocess.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py
index b45543e4..0390c48d 100644
--- a/mediagoblin/gmg_commands/reprocess.py
+++ b/mediagoblin/gmg_commands/reprocess.py
@@ -50,24 +50,24 @@ def _set_media_type(args):
if not args[0].type:
args[0].type = media_type
elif args[0].type != media_type:
- raise Exception(_('The --type that you set does not match the type'
- ' of the given media_id.'))
+ raise Exception(_('The --type that you set does not match the'
+ 'type of the given media_id.'))
elif len(args[0].media_id) > 1:
media_types = []
for id in args[0].media_id:
media_types.append(MediaEntry.query.filter_by(id=id).first()
- .media_type.split('.')[-1])
+ .media_type.split('.')[-1])
for type in media_types:
if media_types[0] != type:
- raise Exception((u'You cannot reprocess different media_types'
- ' at the same time.'))
+ raise Exception((u'You cannot reprocess different'
+ ' media_types at the same time.'))
if not args[0].type:
args[0].type = media_types[0]
elif args[0].type != media_types[0]:
- raise Exception(_('The --type that you set does not match the type'
- ' of the given media_ids.'))
+ raise Exception(_('The --type that you set does not match the'
+ ' type of the given media_ids.'))
def _reprocess_all(args):
@@ -128,8 +128,8 @@ def _set_media_state(args):
.state)
for state in media_states:
if state != media_states[0]:
- raise Exception(_('You can only reprocess media that is in the'
- ' same state.'))
+ raise Exception(_('You can only reprocess media that is in'
+ ' the same state.'))
args[0].state = media_states[0]