Skip to content

Handle Invalid Characters in Path#35

Open
elgertam wants to merge 2 commits intomasterfrom
i26-character-names
Open

Handle Invalid Characters in Path#35
elgertam wants to merge 2 commits intomasterfrom
i26-character-names

Conversation

@elgertam
Copy link
Copy Markdown
Member

  • Added exception when a character in the path is not valid on Synapse
  • Added test verifying that invalid paths throw exceptions

* Added exception when a character in the path is not valid on Synapse
* Added test verifying that invalid paths throw exceptions
Copy link
Copy Markdown
Member

@pcstout pcstout left a comment

Choose a reason for hiding this comment

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

Maybe we can catch the filename errors (on .store()) and pretty them up that way we don't have to keep a list of valid/invalid chars.

syn_entity = None

# check for valid characters in string
for rel_part in sys_path.rel_parts:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This probably needs to be a method so it can be called on line #219 too.

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