# HG changeset patch # User k0s # Date 1261949429 18000 # Node ID e5efa999911a18c4746b2b805fdba203277ebccb # Parent bb2d34fb5de496d0466a29f7a65734acb7af18fd make sure self.app is actually callable diff -r bb2d34fb5de4 -r e5efa999911a uploader/dispatcher.py --- a/uploader/dispatcher.py Sun Dec 27 16:27:34 2009 -0500 +++ b/uploader/dispatcher.py Sun Dec 27 16:30:29 2009 -0500 @@ -19,6 +19,8 @@ for key in self.defaults: setattr(self, key, kw.get(key, self.defaults[key])) assert os.path.exists(self.directory) + if self.app: + assert hasattr(self.app, '__call__') self.auth = self.auth.lower() == 'true' self.subpath = self.subpath.lower() == 'true' if self.subpath: