From: Sergey Matveev Date: Wed, 14 Feb 2018 07:36:22 +0000 (+0300) Subject: Fix DecodeError bug with DecodePathDefBy X-Git-Tag: 3.1~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=dc78d31d6f27b6cbcfafe8973257a3acb0ce692c;ds=sidebyside Fix DecodeError bug with DecodePathDefBy --- diff --git a/VERSION b/VERSION index 9f55b2c..8c50098 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0 +3.1 diff --git a/doc/news.rst b/doc/news.rst index 5a8f718..0363d7d 100644 --- a/doc/news.rst +++ b/doc/news.rst @@ -1,6 +1,12 @@ News ==== +.. _release3.1: + +3.1 +--- +* Fix bug related to DecodeError showing with DecodePathDefBy entities + .. _release3.0: 3.0 diff --git a/pyderasn.py b/pyderasn.py index e69b190..3ed23da 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -588,7 +588,7 @@ class DecodeError(Exception): c for c in ( "" if self.klass is None else self.klass.__name__, ( - ("(%s)" % ".".join(self.decode_path)) + ("(%s)" % ".".join(str(dp) for dp in self.decode_path)) if len(self.decode_path) > 0 else "" ), ("(at %d)" % self.offset) if self.offset > 0 else "",