Skip to content

Commit

Permalink
Update calls to Sidetrack
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Mar 24, 2022
1 parent ed5c0af commit d849e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eprints2bags/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def addurl(text):
error = ServiceFailure(addurl(f'Server error (HTTP code {code})'))
elif not (200 <= code < 400):
error = NetworkFailure(f'Unable to resolve {url}')
if __debug__: log('returning result {}',
'with error {}'.format(error) if error else 'without error')
if __debug__: log('returning result {}'
+ ' with error {}'.format(error) if error else 'without error')
return (req, error)


Expand Down
4 changes: 2 additions & 2 deletions eprints2bags/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import sys

if __debug__:
from sidetrack import set_debug, log, logr
from sidetrack import set_debug, log, logf

from .exceptions import *

Expand Down Expand Up @@ -264,7 +264,7 @@ def inform(self, text, *args):
if not self._be_quiet:
self._print_or_queue(text.format(*args), 'info')
else:
if __debug__: log(text, *args)
if __debug__: logf(text, *args)


def warn(self, text, *args):
Expand Down

0 comments on commit d849e00

Please sign in to comment.