View Issue Details

IDProjectCategoryView StatusLast Update
0006507TalerMerchant frontends (Python3)public2020-08-23 12:21
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006507: taler-merchant-demos crash without port
DescriptionThere should be a good default port if none is configured, and also in general never a stack trace generated and instead only a proper English error message being shown. (A debug flag should be used to show the stack trace.) Right now, without [blog] port I get:

$ taler-merchant-demos --serve-http blog
WARNING:taler.util.talerconfig:no base directory found
WARNING:taler.util.talerconfig:Configuration ** is missing option 'HTTP_PORT' in section 'BLOG'
Traceback (most recent call last):
  File "/home/grothoff/.local/bin/taler-merchant-demos", line 98, in <module>
    demos()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/grothoff/.local/bin/taler-merchant-demos", line 94, in demos
    handle_serve_http(config_obj, which_shop, port)
  File "/home/grothoff/.local/bin/taler-merchant-demos", line 72, in handle_serve_http
    spec = ":%d" % (port,)
TypeError: %d format: a number is required, not NoneType
TagsNo tags attached.

Activities

Christian Grothoff

2020-08-23 12:21

manager   ~0016714

48aad32..78e7715 should fix this issue.

Issue History

Date Modified Username Field Change
2020-08-22 22:00 Christian Grothoff New Issue
2020-08-23 12:21 Christian Grothoff Note Added: 0016714
2020-08-23 12:21 Christian Grothoff Assigned To => Christian Grothoff
2020-08-23 12:21 Christian Grothoff Status new => resolved
2020-08-23 12:21 Christian Grothoff Resolution open => fixed
2020-08-23 12:21 Christian Grothoff Fixed in Version => 0.8