Skip to content

Commit

Permalink
fix empty log message and show only one log, not two
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Aug 11, 2016
1 parent 2594b4b commit 57a06e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sickbeard/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,12 @@ def is_malformed_error(title):
if issue_id and cur_error in classes.ErrorViewer.errors:
# clear error from error list
classes.ErrorViewer.errors.remove(cur_error)
except (BadCredentialsException, RateLimitExceededException) as e:
self.log('Error while accessing github: {0}'.format(e), WARNING)
except BadCredentialsException as e:
submitter_result = 'Please check your Github credentials in Medusa settings. Bad Credentials error'
issue_id = None
except RateLimitExceededException as e:
submitter_result = 'Please wait before submit new issues . Github Rate Limit Exceeded error'
issue_id = None
except Exception: # pylint: disable=broad-except
self.log(traceback.format_exc(), ERROR)
submitter_result = 'Exception generated in issue submitter, please check the log'
Expand Down

0 comments on commit 57a06e1

Please sign in to comment.