Fix issue 12: lmwsip.run geeft stack trace.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- LmwSip object aangemaakt om tijd te bepalen. - Nog geen test code geschreven. Vergt uitzoeken hoe we door argparse heen kunnen testen.
This commit is contained in:
@@ -12,7 +12,7 @@ from datetime import datetime, timedelta
|
|||||||
from dateutil import tz
|
from dateutil import tz
|
||||||
|
|
||||||
""" Version info changed by git hook """
|
""" Version info changed by git hook """
|
||||||
__version__ = '0.1.8'
|
__version__ = '0.1.9'
|
||||||
|
|
||||||
class LmwSip:
|
class LmwSip:
|
||||||
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
||||||
|
@@ -33,7 +33,7 @@ def run(args):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
lastTime=LmwSip.lasttime(None, "H10")
|
lastTime=LmwSip().lasttime("H10")
|
||||||
parser = argparse.ArgumentParser(description="Run a sip file.")
|
parser = argparse.ArgumentParser(description="Run a sip file.")
|
||||||
parser.add_argument("-u", "--unencrypted", action="store_true",
|
parser.add_argument("-u", "--unencrypted", action="store_true",
|
||||||
help="Run a sip connection without ssl")
|
help="Run a sip connection without ssl")
|
||||||
|
2
setup.py
2
setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="lmwsip", # Replace with your own username
|
name="lmwsip", # Replace with your own username
|
||||||
version="0.1.8",
|
version="0.1.9",
|
||||||
author="Marcel Nijenhof",
|
author="Marcel Nijenhof",
|
||||||
author_email="pip@marceln.org",
|
author_email="pip@marceln.org",
|
||||||
description="Interface for the lmw sip protocol",
|
description="Interface for the lmw sip protocol",
|
||||||
|
Reference in New Issue
Block a user