From 2f41f92e98aa91d84786911ad249607eb2b01cab Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 7 Mar 2017 16:39:12 +0300 Subject: [PATCH] fix bug in checkResumeFile() --- stanis-tits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stanis-tits.py b/stanis-tits.py index 2ca0078..dc59732 100644 --- a/stanis-tits.py +++ b/stanis-tits.py @@ -20,7 +20,7 @@ def checkResumeFile(): with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'w') as f: f.write('0') - return(0) + return([0]) else: with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'r') as f: lines = [line.split('\n')[0] for line in f][-20:]