Skip to content

Commit

Permalink
Fix logging in massEditSubmit. Fixes #3160 (#3609)
Browse files Browse the repository at this point in the history
  • Loading branch information
medariox authored and p0psicles committed Jan 15, 2018
1 parent c1aefda commit e162853
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions medusa/server/web/manage/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,14 +590,14 @@ def massEditSubmit(self, paused=None, default_ep_status=None, dvd_order=None,
if not show_obj:
continue

cur_root_dir = os.path.dirname(show_obj._location) # pylint: disable=protected-access
cur_show_dir = os.path.basename(show_obj._location) # pylint: disable=protected-access
cur_root_dir = os.path.dirname(show_obj._location)
cur_show_dir = os.path.basename(show_obj._location)
if cur_root_dir in dir_map and cur_root_dir != dir_map[cur_root_dir]:
new_show_dir = os.path.join(dir_map[cur_root_dir], cur_show_dir)
logger.log(u'For show {show.name} changing dir from {show.location} to {location}'.format
(show=show_obj, location=new_show_dir)) # pylint: disable=protected-access
logger.log(u'For show {show.name} changing dir from {show._location} to {location}'.format
(show=show_obj, location=new_show_dir))
else:
new_show_dir = show_obj._location # pylint: disable=protected-access
new_show_dir = show_obj._location

if paused == 'keep':
new_paused = show_obj.paused
Expand Down

0 comments on commit e162853

Please sign in to comment.