mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Added code to ensure logfile is not NoneType when deciding to create a pastebin of last 50 lines of logfile
This commit is contained in:
parent
88af4c905a
commit
417ffbf22c
@ -148,8 +148,8 @@ class Logger(object):
|
||||
|
||||
pastebin_url = None
|
||||
try:
|
||||
if os.path.isfile(logger.logFile):
|
||||
with ek.ek(open, logger.logFile) as f:
|
||||
if self.logFile and os.path.isfile(self.logFile):
|
||||
with ek.ek(open, self.logFile) as f:
|
||||
data = f.readlines(50)
|
||||
pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', data)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user