Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Fixed bug in Scrapyd launcher when running projects without eggs. Refs #238

Pablo Hoffman4cecbcdc5b47
diff --git a/scrapyd/launcher.py b/scrapyd/launcher.py
index 6742af78b..06762944e 100644
--- a/scrapyd/launcher.py
+++ b/scrapyd/launcher.py
@@ -29,6 +29,8 @@ class Launcher(Service):
def _get_eggpath(self, project):
eggstorage = self.app.getComponent(IEggStorage)
version, eggf = eggstorage.get(project)
+ if eggf is None:
+ return
prefix = '%s-%s-' % (project, version)
fd, eggpath = mkstemp(prefix=prefix, suffix='.egg')
lf = os.fdopen(fd, 'wb')