Skip to content

Commit

Permalink
Merge pull request #7 from qbicsoftware/hotfix/handle-without-barcodes
Browse files Browse the repository at this point in the history
fix syntax error
  • Loading branch information
wow-such-code authored Jul 19, 2021
2 parents 7cb5c16 + 84b6a23 commit 2a77497
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ Changelog

This project adheres to `Semantic Versioning <https://semver.org/>`_.

1.6.1 (2021-07-19)
------------------

**Added**

**Fixed**

* Syntax error leading to error when handling files/folders without barcode

**Dependencies**

**Deprecated**

1.6.0 (2021-07-16)
------------------

Expand Down
2 changes: 1 addition & 1 deletion dropboxhandler/dropboxhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def generate_openbis_name(path):
barcode = extract_barcode(cleaned_name)
except ValueError:
logger.warn("No or more than one barcode in file: %s. Trying to find respective rule.", path)
return name
return cleaned_name
name = cleaned_name.replace(barcode, "")
if name.startswith('_'):
name = name[1:]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='dropboxhandler',
version='1.6.0',
version='1.6.1',
author='Adrian Seyboldt',
author_email='[email protected]',
url="https://github.com/qbicsoftware/dropboxhandler",
Expand Down

0 comments on commit 2a77497

Please sign in to comment.