Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modules/export/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def saveToPdf(foundAccounts, resultType, config):
height=35,
)
y_position -= 15
except:
except Exception:
pass
endWidth = y_position
canva.setStrokeColor("#CE0000")
Expand Down
2 changes: 1 addition & 1 deletion src/modules/utils/file_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ def getLinesFromFile(fileName):
with open(fileName) as f:
lines = f.read().splitlines()
return lines
except:
except Exception:
return False
2 changes: 1 addition & 1 deletion src/modules/utils/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def do_async_request(method, url, session, config, data=None, customHeader
json = None
try:
content = await response.text()
except:
except Exception:
binaryContent = await response.read()
encode = chardet.detect(binaryContent)["encoding"]
content = binaryContent.decode(encode)
Expand Down
4 changes: 2 additions & 2 deletions src/modules/utils/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def access_json_property(data, path_config):
for key in path_config:
property_value = property_value[key]
return property_value
except:
except Exception:
return False


Expand All @@ -25,7 +25,7 @@ def access_html_regex(data, pattern):
match = re.search(pattern, data)
if match:
return match.group(1).replace("\n", "")
except:
except Exception:
return False


Expand Down