Skip to content

Commit

Permalink
fixed issue #944 [tool]
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Oct 20, 2020
1 parent 94d3387 commit 8032d7b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def __init__(self, eid, oldvalue, final=False):

def format_value(self, from_pattern, to_pattern):
try:
if from_pattern and to_pattern:
if to_pattern is None:
to_pattern = ""

if from_pattern:
# if format contains pattern finders use reformatter
if any(x in from_pattern for x in ['{', '}']):
self.newvalue = \
Expand Down

0 comments on commit 8032d7b

Please sign in to comment.