From b566c8e1fdcaefb8e14a4e5124a64354df6a61b4 Mon Sep 17 00:00:00 2001 From: kaloyane <kaloyane> Date: Wed, 13 Jul 2011 12:28:36 +0000 Subject: [PATCH] minor: possible bugfix (RuntimeException ctor called with two params. and 2nd was String, when it should have been a Throwable) SVN: 22122 --- .../etc/sanofi-dropbox/dropbox-all-in-one-with-library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py b/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py index a81791dc72f..0bb260881fa 100644 --- a/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py +++ b/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py @@ -246,8 +246,8 @@ def convertToPng(dir, transparentColor): machineLoad = ALLOWED_MACHINE_LOAD_DURING_THUMBNAIL_GENERATION maxThreads = 100 errorMsg = FileConverter.performConversion(File(dir), strategy, machineLoad, maxThreads) - if errorMsg != None: - raise RuntimeException("Error converting overlays:", errorMsg) + if errorMsg: + raise RuntimeException("Error converting overlays:" + errorMsg) # --------------------- -- GitLab