Assumes AffectedSOPClass is returned in C-ECHO-RSP
Hi,
pynetdicom assumes that AffectedSOPClass is returned in a C-ECHO-RSP. However, it seems that at least mirth does not return AffectedSOPClass in its response, making pynetdicom unable to properly ping mirth, throwing the following trace:
File "pinger.py", line 38, in
the quick fix is to change AffectedSOPClassUID to optional, in DIMSEmessages.py line 247:
if self.CommandSet.has_key((0x0000,0x0002)):
tmp.AffectedSOPClassUID = self.CommandSet[(0x0000,0x0002)]
I will file a bug with Mirth in parallel, but I believe pynetdicom should be more lenient.
Looks like this is affecting more SOP classes and more keys like AffectedSOPInstanceUID. This had better be a more generic thing rather than just those classes.