Skip to content

Commit 44acf8a

Browse files
committed
Fix inconsistent error string formatting (was in original)
1 parent 6e8f605 commit 44acf8a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ the oldest levels designed for.
9797
* Added MQObject as superclass of queues, topics etc for potential future simplifications
9898
* The C module is considered an internal interface and has changed to match new requirements from the Python layer above
9999
it.
100-
100+
* Text strings from error classes (MQMIError, PYIFError) slightly modified

code/ibmmq/mqerrors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, comp: int, reason: int, **kw: Dict[str,Any]):
3434
setattr(self, k, v)
3535

3636
def __str__(self) -> str:
37-
return 'MQI Error. Comp: %d, Reason %d: %s' % (self.comp, self.reason, self.error_as_string())
37+
return 'MQI Error. Comp %d, Reason %d: %s' % (self.comp, self.reason, self.error_as_string())
3838

3939
def error_as_string(self) -> str:
4040
""" Return the exception object MQI warning/failed reason as its mnemonic string.

tools/testInstServer.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ fi
2222
if [ "$1" != "STOP" ]
2323
then
2424
cd $venv
25+
# Clean out any existing packages
2526
rm -rf ./packages/*
2627
echo "Running a local pypi server"
27-
pypi-server run --verbose -p 8080 -a . -P . $* ./packages >pypi-server.log 2>&1 &
28+
# This server is unprotected - no TLS, no authentication, no authorisation controls
29+
# But it's only listening on localhost, so should not be remotely accessible
30+
pypi-server run --verbose -i 127.0.0.1 -p 8080 -a . -P . $* ./packages >pypi-server.log 2>&1 &
2831
else
2932
echo "Any running pypi server was stopped"
3033
fi

0 commit comments

Comments
 (0)