From dc78d31d6f27b6cbcfafe8973257a3acb0ce692c Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 14 Feb 2018 10:36:22 +0300 Subject: [PATCH] Fix DecodeError bug with DecodePathDefBy --- VERSION | 2 +- doc/news.rst | 6 ++++++ pyderasn.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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 "", -- 2.44.0