Skip to content

Commit c323aef

Browse files
committed
Bump version: 0.10.2 → 0.10.3
fix: duplicate err.log entry
1 parent 381cdeb commit c323aef

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

.git-utils-bump.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.10.2
2+
current_version = 0.10.3
33
commit = True
44
tag = False
55

fichub_cli/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.10.2"
1+
__version__ = "0.10.3"

fichub_cli/utils/fetch_data.py

-12
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,12 @@ def get_fic_with_infile(self, infile: str):
111111
except Exception as e:
112112
if self.debug:
113113
logger.error(str(traceback.format_exc()))
114-
with open("err.log", "a") as file:
115-
file.write(url.strip()+"\n")
116114
err_urls.append(url)
117115
pbar.update(1)
118116
self.exit_status = 1
119117
pass # skip the unsupported url
120118

121119
else: # skip the unsupported url
122-
with open("err.log", "a") as file:
123-
file.write(url.strip()+"\n")
124120
err_urls.append(url)
125121
pbar.update(1)
126122
continue
@@ -195,16 +191,12 @@ def get_fic_with_list(self, list_url: str):
195191
except Exception as e:
196192
if self.debug:
197193
logger.error(str(traceback.format_exc()))
198-
with open("err.log", "a") as file:
199-
file.write(url.strip()+"\n")
200194
err_urls.append(url)
201195
pbar.update(1)
202196
self.exit_status = 1
203197
pass # skip the unsupported url
204198

205199
else: # skip the unsupported url
206-
with open("err.log", "a") as file:
207-
file.write(url.strip()+"\n")
208200
err_urls.append(url)
209201
pbar.update(1)
210202
continue
@@ -266,15 +258,11 @@ def get_fic_with_url(self, url_input: str):
266258
except Exception:
267259
if self.debug:
268260
logger.error(str(traceback.format_exc()))
269-
with open("err.log", "a") as file:
270-
file.write(url[0].strip()+"\n")
271261
pbar.update(1)
272262
self.exit_status = 1
273263
pass # skip the unsupported url
274264

275265
else: # skip the unsupported url
276-
with open("err.log", "a") as file:
277-
file.write(url[0].strip()+"\n")
278266
pbar.update(1)
279267
else:
280268
typer.echo(Fore.RED +

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
description="A CLI for the fichub.net API",
1111
long_description=long_description,
1212
long_description_content_type="text/markdown",
13-
version="0.10.2",
13+
version="0.10.3",
1414
license='Apache License',
1515
url="https://github.com/FicHub/fichub-cli",
1616
packages=find_packages(include=['fichub_cli', 'fichub_cli.*']),

tests/test_cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ def test_cli_version():
6161

6262
assert not result.exception
6363
assert result.exit_code == 0
64-
assert result.output.strip() == 'fichub-cli: v0.10.2'
64+
assert result.output.strip() == 'fichub-cli: v0.10.3'

0 commit comments

Comments
 (0)