Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing exception to warning for diff repcode #248

Merged
merged 1 commit into from
Apr 3, 2020
Merged

changing exception to warning for diff repcode #248

merged 1 commit into from
Apr 3, 2020

Conversation

ShikhaMishra9
Copy link
Contributor

Throwing a warning and supplying default value based on the
new reprcode.

Copy link
Contributor

@achaikou achaikou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done 🙂 I checked it on the actual failing file, it solves the problem 👍
Comments are mostly me being 😈

python/tests/test_logical_record.py Outdated Show resolved Hide resolved
lib/src/parse.cpp Show resolved Hide resolved
python/tests/test_logical_record.py Outdated Show resolved Hide resolved
python/tests/test_logical_record.py Outdated Show resolved Hide resolved
Copy link
Contributor

@achaikou achaikou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General comment: you added two older commits as well. They are not part of this PR, so please remove.

python/tests/test_logical_record.py Outdated Show resolved Hide resolved
@achaikou
Copy link
Contributor

Great! A small note about commit message, and then we should be done:

commit title: we usually throw exceptions, but report warnings. Throwing a warning sounds weird. So "Report warning for diff repcode" or "Warn on changed repcode" makes more sense to me.

When representation code is overwritten in object and not
value a warning will be given to users.This situation occurs
in actual files. Representation code is overwritten, but looks like
value is not important for the users. Hence we set the value to a
default one of new type.
Copy link
Contributor

@achaikou achaikou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked again on the actual file and it works 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants