]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/checks.py: only use source.filename if source is not None
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 18 Sep 2012 21:31:26 +0000 (23:31 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 18 Sep 2012 21:31:26 +0000 (23:31 +0200)
daklib/checks.py

index f073d52fa43bc3d785667b7f15ce355ffd5941f5..63ea10f2a8ee01d2aa8bf5c3646741bebf6ebf79 100644 (file)
@@ -174,8 +174,8 @@ class HashesCheck(Check):
             for f in changes.files.itervalues():
                 f.check(upload.directory)
             source = changes.source
-            what = source.filename
             if source is not None:
+                what = source.filename
                 for f in source.files.itervalues():
                     f.check(upload.directory)
         except IOError as e: