Skip to content

<1> Improved Exception Handling <2> Readme updates <3> Fix type error on write file <4> Depr. has_key updated with has_attr#1

Open
LukasWillin wants to merge 10 commits into
fin-ger:masterfrom
LukasWillin:master
Open

<1> Improved Exception Handling <2> Readme updates <3> Fix type error on write file <4> Depr. has_key updated with has_attr#1
LukasWillin wants to merge 10 commits into
fin-ger:masterfrom
LukasWillin:master

Conversation

@LukasWillin

Copy link
Copy Markdown

Hmm I thought I had created a PR for this. But apparently I have not yet.

Anyways here are the changes I have made so far to get it running again (Windows Environment) as well as some minor improvements.

This PR:

  1. Updates readme information
  2. Improves exception handling (either printing out the error in the first place or printing the original error for easier debugging)
  3. Fixes type error on write file (decode utf-8)
  4. Update deprecated has_key with has_attr

LukasWillin and others added 10 commits March 3, 2020 14:57
… exception

1. TypeError: write() argument must be str, not bytes
Thrown because of encoding on Windows with python 3.8.x
2. Write exception to console instead of writing your own
<1> Fix TypeError when writing html to outputfile <2> Output original exception
Output exception when file.read() fails to help with debugging.
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.

1 participant