Skip to content

Conversation

@rabinadk1
Copy link

@rabinadk1 rabinadk1 commented Aug 22, 2020

  • Use Item instead of BaseItem since it's deprecated in favor of the prior
  • Bump minimum python version to 3.6 due to the use of f-strings
  • Blacked the code to make it look good
  • Added typings to the code to make it easier to debug

@codecov
Copy link

codecov bot commented Aug 22, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@aea3c34). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #36   +/-   ##
=========================================
  Coverage          ?   94.20%           
=========================================
  Files             ?        2           
  Lines             ?       69           
  Branches          ?        9           
=========================================
  Hits              ?       65           
  Misses            ?        1           
  Partials          ?        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aea3c34...0945860. Read the comment docs.

raise NotConfigured('bsddb3 is required')
self.dbmodule = dbmodule
def __init__(self, dir: str, reset: bool = False, stats: StatsCollector = None):
self.dir = dir
Copy link
Collaborator

Choose a reason for hiding this comment

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

bsddb3 is not available on some platforms, so it will crash for some people without bsddb3 and they will not know exactly why. I created ticket for moving away from bsddb3 to other library #37

Copy link
Author

Choose a reason for hiding this comment

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

Sorry for the late reply. But bsddb3 is imported on the top which will clearly say

    import bsddb3
ModuleNotFoundError: No module named 'bsddb3'

when it is not installed on the device

@rabinadk1 rabinadk1 requested a review from pawelmhm May 29, 2021 11:39
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