Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
d1837947
Commit
d1837947
authored
Jul 28, 2015
by
Fernando
Committed by
Dustyn Gibson
Jul 29, 2015
Browse files
Options
Downloads
Patches
Plain Diff
Check if SR is updated before submitting an issue
parent
26519c47
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/logger.py
+15
-2
15 additions, 2 deletions
sickbeard/logger.py
with
15 additions
and
2 deletions
sickbeard/logger.py
+
15
−
2
View file @
d1837947
...
...
@@ -152,8 +152,21 @@ class Logger(object):
sys
.
exit
(
1
)
def
submit_errors
(
self
):
if
not
(
sickbeard
.
GIT_USERNAME
and
sickbeard
.
GIT_PASSWORD
and
len
(
classes
.
ErrorViewer
.
errors
)
>
0
):
self
.
log
(
'
Please set your GitHub username and password in the config, unable to submit issue ticket to GitHub!
'
)
if
not
(
sickbeard
.
GIT_USERNAME
and
sickbeard
.
GIT_PASSWORD
and
sickbeard
.
DEBUG
and
len
(
classes
.
ErrorViewer
.
errors
)
>
0
):
self
.
log
(
'
Please set your GitHub username and password in the config and enable debug. Unable to submit issue ticket to GitHub!
'
)
return
try
:
from
versionChecker
import
CheckVersion
checkversion
=
CheckVersion
()
needs_update
=
checkversion
.
check_for_new_version
()
commits_behind
=
checkversion
.
updater
.
get_num_commits_behind
()
except
:
self
.
log
(
'
Could not check if your SickRage is updated, unable to submit issue ticket to GitHub!
'
)
return
if
commits_behind
is
None
or
commits_behind
>
0
:
self
.
log
(
'
Please update SickRage, unable to submit issue ticket to GitHub with an outdated version!
'
)
return
if
self
.
submitter_running
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment