Skip to content

Commit

Permalink
Merge branch 'gbasf2-rel6.0-fix' into 'main'
Browse files Browse the repository at this point in the history
Small fix for gbasf2 release 6.0

See merge request belle2/software/b2luigi!24
  • Loading branch information
AlexanderHeidelbach committed May 16, 2024
2 parents 6de9cd6 + 2e49712 commit 84097d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion b2luigi/batch/processes/gbasf2_utils/gbasf2_proxy_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class CertEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, X509Chain):
x509_dict = obj.dumpAllToString()
x509_dict["Value"] = x509_dict["Value"].decode()
if isinstance(x509_dict["Value"], bytes):
x509_dict["Value"] = x509_dict["Value"].decode()
return x509_dict
return json.JSONEncoder.default(self, obj)

Expand Down

0 comments on commit 84097d9

Please sign in to comment.