File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,12 @@ def main():
88
88
if i .filename == unicode ('%s/%s' % (startdate .strftime ('%Y/%m/%d' ), img_saved_as ), 'utf-8' ):
89
89
if str (i .file_size ) == img_size :
90
90
ok = True
91
+ elif i .file_size == 0 :
92
+ error = 'empty'
91
93
else :
92
- print i .file_size , img_size
93
- error = 'corrupt'
94
+ error = 'corrupt (%s of %s bytes)' % (i .file_size , img_size )
94
95
if not ok :
96
+ print img_name , img_saved_as , error
95
97
errors .append ([img_saved_as , error ])
96
98
if errors :
97
99
print 'This .zip contains errors:'
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ # Copyright (C) 2011-2012 WikiTeam
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ import Tkinter
19
+ import ttk
20
+
You can’t perform that action at this time.
0 commit comments