]> git.aero2k.de Git - sirius.git/commitdiff
Don't throw exception when driver doesn't initialize.
authorTom Hunger <tehunger@gmail.com>
Tue, 3 Feb 2015 15:26:20 +0000 (15:26 +0000)
committerTom Hunger <tehunger@gmail.com>
Tue, 3 Feb 2015 15:26:20 +0000 (15:26 +0000)
sirius/coding/image_encoding.py

index f6ddd2b9760c8366c8c515553f1cfa543852a4ff..436871ed9ea6905ea1ca1c4ed3fb8d3a417f22ee 100644 (file)
@@ -125,7 +125,8 @@ def html_to_png(html):
 
         return data
     finally:
-        driver.quit()
+        if driver:
+            driver.quit()
 
 
 def default_pipeline(html):