Skip to content

Commit

Permalink
Fix log level for no root directory when adding from popular lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
labrys committed Mar 21, 2016
1 parent a0ae00b commit b007aa4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sickbeard/webserve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1816,9 +1816,9 @@ def editShow(self, show=None, location=None, anyQualities=[], bestQualities=[],
'<ul>' + '\n'.join(['<li>%s</li>' % error for error in errors]) + "</ul>")

return self.redirect("/home/displayShow?show=" + show)

def erase_cache(self, showObj):

try:
main_db_con = db.DBConnection('cache.db')
for curProvider in sickbeard.providers.sortedProviderList():
Expand All @@ -1833,7 +1833,7 @@ def erase_cache(self, showObj):

except Exception:
logger.log(u"Unable to delete cached results for show: {}".format(showObj.name), logger.DEBUG)


def togglePause(self, show=None):
error, show = Show.pause(show)
Expand Down Expand Up @@ -2915,7 +2915,8 @@ def addShowByID(self, indexer_id, show_name, indexer="TVDB", which_series=None,
location = None

if not location:
logger.log(u"There was an error creating the show, no root directory setting found")
logger.log(u"There was an error creating the show, "
u"no root directory setting found", logger.WARNING)
return "No root directories setup, please go back and add one."

show_name = get_showname_from_indexer(1, indexer_id)
Expand Down

0 comments on commit b007aa4

Please sign in to comment.