Skip to content

Commit

Permalink
Do not fail import if release date is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Feb 11, 2021
1 parent 11723b3 commit df81221
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brian2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def _check_dependencies():

from ._version import get_versions as _get_versions
__version__ = _get_versions()['version']
__release_date__ = _get_versions()['date'][:10] #only use date part
__release_date__ = _get_versions()['date']

if __release_date__ is not None:
__release_date__ = __release_date__[:10] #only use date part
__git_revision__ = _get_versions()['full-revisionid']

# Make sure that Brian's unit-aware functions are used, even when directly
Expand Down

0 comments on commit df81221

Please sign in to comment.