diff --git a/CHANGELOG.md b/CHANGELOG.md index bd902a2..dd9e48d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [[Unreleased] +## [Unreleased] - Nothing -## [[0.6.0](https://github.com/jmagnusson/netsuite/compare/v0.5.3...v0.6.0) - 2021-04-25 +## [0.6.1](https://github.com/jmagnusson/netsuite/compare/v0.6.0...v0.6.1) - 2021-04-25 + +### Fixed +- Fix "local variable 'record_ref' referenced before assignment" error in `NetSuite.get` method - Thanks @VeNoMouS! (#25) + +## [0.6.0] - 2021-04-25 ### Fixed - Release 2021.1 wouldn't accept non-GET requests to the REST API without body being part of the signing. Thanks to @mmangione for the PR! (#26) diff --git a/netsuite/client.py b/netsuite/client.py index f82205d..1e7f72e 100755 --- a/netsuite/client.py +++ b/netsuite/client.py @@ -557,7 +557,7 @@ def get( internalId=internalId, ) else: - self.Core.RecordRef( + record_ref = self.Core.RecordRef( type=recordType, externalId=externalId, ) diff --git a/pyproject.toml b/pyproject.toml index 9706f69..ec12ea1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "netsuite" -version = "0.6.0" +version = "0.6.1" description = "Wrapper around Netsuite SuiteTalk SOAP/REST Web Services and Restlets." authors = ["Jacob Magnusson "] license = "MIT"