Skip to content

Commit

Permalink
Backport app fixes (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Jan 28, 2021
1 parent 7d7a7d4 commit a4df460
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include pynetdicom/tests/cert_files/*
include pynetdicom/tests/dicom_files/*
include pynetdicom/apps/qrscp/default.ini
1 change: 1 addition & 0 deletions docs/changelog/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Release Notes
.. toctree::
:maxdepth: 1

v1.5.6
v1.5.5
v1.5.4
v1.5.3
Expand Down
11 changes: 11 additions & 0 deletions docs/changelog/v1.5.6.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _v1.5.6:

1.5.6
=====

Fixes
.....

* Fixes for the C-STORE handler used by the `storescp`, `qrscp` and `movescu`
apps (:pr:`579`, :pr:`581`)
* Fixed the `qrscp` app's missing `default.ini` file (:issue:`583`)
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Applications
Release Notes
=============

* :doc:`v1.5.6 </changelog/v1.5.6>`
* :doc:`v1.5.5 </changelog/v1.5.5>`
* :doc:`v1.5.4 </changelog/v1.5.4>`
* :doc:`v1.5.3 </changelog/v1.5.3>`
Expand Down
2 changes: 1 addition & 1 deletion pynetdicom/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import re


__version__ = '1.5.5'
__version__ = '1.5.6'


VERSION_PATTERN = r"""
Expand Down
10 changes: 5 additions & 5 deletions pynetdicom/apps/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,6 @@ def handle_store(event, args, app_logger):
filename = '{0!s}.{1!s}'.format(mode_prefix, sop_instance)
app_logger.info('Storing DICOM file: {0!s}'.format(filename))

if os.path.exists(filename):
app_logger.warning('DICOM file already exists, overwriting')

status_ds = Dataset()
status_ds.Status = 0x0000

Expand All @@ -609,8 +606,11 @@ def handle_store(event, args, app_logger):
app_logger.error(" {0!s}".format(args.output_directory))
app_logger.exception(exc)
# Failed - Out of Resources - IOError
status.Status = 0xA700
return status
status_ds.Status = 0xA700
return status_ds

if os.path.exists(filename):
app_logger.warning('DICOM file already exists, overwriting')

try:
if event.context.transfer_syntax == DeflatedExplicitVRLittleEndian:
Expand Down

0 comments on commit a4df460

Please sign in to comment.