changeset 97399864a211 in modules/product:default
details: https://hg.tryton.org/modules/product?cmd=changeset;node=97399864a211
description:
        Use ImportError instead of ModuleNotFoundError for py3.5 support
        issue7086
diffstat:

 product.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d728c553a43c -r 97399864a211 product.py
--- a/product.py        Thu Jun 06 19:20:43 2019 +0200
+++ b/product.py        Thu Jun 06 19:32:36 2019 +0200
@@ -537,7 +537,7 @@
             try:
                 module = import_module('stdnum.%s' % self.type)
                 return module.compact(self.code)
-            except ModuleNotFoundError:
+            except ImportError:
                 pass
             except stdnum.exceptions.ValidationError:
                 pass

Reply via email to